home *** CD-ROM | disk | FTP | other *** search
Unknown | 1997-03-02 | 59.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 60 00 6c 46 00 00 00 00 | 00 00 00 00 2a 2d 2d 20 |`.lF....|....*-- |
|00000010| 4d 61 73 74 65 72 41 70 | 70 20 58 4f 62 6a 65 63 |MasterAp|p XObjec|
|00000020| 74 2c 20 76 65 72 73 69 | 6f 6e 20 30 2e 35 30 2c |t, versi|on 0.50,|
|00000030| 20 33 2f 31 2f 39 37 3c | 2d 2d 20 43 6f 70 79 72 | 3/1/97<|-- Copyr|
|00000040| 69 67 68 74 20 a9 20 31 | 39 39 36 2d 31 39 39 37 |ight . 1|996-1997|
|00000050| 2c 20 47 6c 65 6e 6e 20 | 4d 2e 20 50 69 63 68 65 |, Glenn |M. Piche|
|00000060| 72 2c 20 44 69 72 69 67 | 6f 20 4d 75 6c 74 69 6d |r, Dirig|o Multim|
|00000070| 65 64 69 61 47 2d 2d 20 | 68 74 74 70 3a 2f 2f 77 |ediaG-- |http://w|
|00000080| 77 77 2e 6d 61 69 6e 65 | 2e 63 6f 6d 2f 73 68 6f |ww.maine|.com/sho|
|00000090| 70 73 2f 67 70 69 63 68 | 65 72 2c 20 67 70 69 63 |ps/gpich|er, gpic|
|000000a0| 68 65 72 40 6d 61 69 6e | 65 2e 63 6f 6d 2c 20 28 |her@main|e.com, (|
|000000b0| 32 30 37 29 37 36 37 2d | 38 30 31 35 03 2d 2d 20 |207)767-|8015.-- |
|000000c0| 51 2d 2d 20 52 65 6c 65 | 61 73 61 62 6c 65 20 62 |Q-- Rele|asable b|
|000000d0| 65 74 61 20 76 65 72 73 | 69 6f 6e 2e 20 43 6f 6e |eta vers|ion. Con|
|000000e0| 74 61 63 74 20 67 2f 6d | 61 74 74 65 72 2c 20 69 |tact g/m|atter, i|
|000000f0| 6e 63 2e 20 66 6f 72 20 | 6c 69 63 65 6e 73 69 6e |nc. for |licensin|
|00000100| 67 20 6f 72 20 74 65 63 | 68 20 73 75 70 70 6f 72 |g or tec|h suppor|
|00000110| 74 3a 43 2d 2d 20 68 74 | 74 70 3a 2f 2f 77 77 77 |t:C-- ht|tp://www|
|00000120| 2e 67 6d 61 74 74 65 72 | 2e 63 6f 6d 2c 20 73 61 |.gmatter|.com, sa|
|00000130| 6c 65 73 40 67 6d 61 74 | 74 65 72 2e 63 6f 6d 2c |les@gmat|ter.com,|
|00000140| 20 73 75 70 70 6f 72 74 | 40 67 6d 61 74 74 65 72 | support|@gmatter|
|00000150| 2e 63 6f 6d 20 2e 02 2d | 2d 06 49 20 6d 4e 65 77 |.com ..-|-.I mNew|
|00000160| 1b 2d 2d 20 53 74 61 6e | 64 61 72 64 20 63 72 65 |.-- Stan|dard cre|
|00000170| 61 74 69 6f 6e 20 6d 65 | 74 68 6f 64 02 2d 2d 0a |ation me|thod.--.|
|00000180| 58 20 6d 44 69 73 70 6f | 73 65 1a 2d 2d 20 53 74 |X mDispo|se.-- St|
|00000190| 61 6e 64 61 72 64 20 64 | 69 73 70 6f 73 65 20 6d |andard d|ispose m|
|000001a0| 65 74 68 6f 64 02 2d 2d | 40 2d 2d 20 4e 6f 74 65 |ethod.--|@-- Note|
|000001b0| 3a 20 43 68 65 63 6b 20 | 61 6c 6c 20 73 74 72 69 |: Check |all stri|
|000001c0| 6e 67 2d 72 65 74 75 72 | 6e 69 6e 67 20 6d 65 74 |ng-retur|ning met|
|000001d0| 68 6f 64 73 20 66 6f 72 | 20 77 6f 72 64 20 31 20 |hods for| word 1 |
|000001e0| 27 45 72 72 6f 72 3a 27 | 2c 2c 2d 2d 20 66 6f 6c |'Error:'|,,-- fol|
|000001f0| 6c 6f 77 65 64 20 62 79 | 20 61 20 64 65 73 63 72 |lowed by| a descr|
|00000200| 69 70 74 69 6f 6e 20 6f | 66 20 74 68 65 20 70 72 |iption o|f the pr|
|00000210| 6f 62 6c 65 6d 2e 02 2d | 2d 11 2d 2d 20 54 41 53 |oblem..-|-.-- TAS|
|00000220| 4b 20 46 55 4e 43 54 49 | 4f 4e 53 11 2d 2d 20 2d |K FUNCTI|ONS.-- -|
|00000230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 4d 2d 2d |--------|-----M--|
|00000240| 20 4e 6f 74 65 3a 20 6f | 6e 20 74 68 65 20 4d 61 | Note: o|n the Ma|
|00000250| 63 2c 20 64 75 65 20 74 | 6f 20 61 72 63 68 69 74 |c, due t|o archit|
|00000260| 65 63 74 75 72 61 6c 20 | 64 69 66 66 65 72 65 6e |ectural |differen|
|00000270| 63 65 73 2c 20 74 61 73 | 6b 49 44 73 2c 20 6d 6f |ces, tas|kIDs, mo|
|00000280| 64 75 6c 65 49 44 73 20 | 61 6e 64 55 2d 2d 20 69 |duleIDs |andU-- i|
|00000290| 6e 73 74 61 6e 63 65 49 | 44 73 20 61 72 65 20 69 |nstanceI|Ds are i|
|000002a0| 6e 74 65 72 63 68 61 6e | 67 65 61 62 6c 65 2e 20 |nterchan|geable. |
|000002b0| 54 68 65 79 20 61 72 65 | 20 64 69 73 74 69 6e 63 |They are| distinc|
|000002c0| 74 6c 79 20 64 69 66 66 | 65 72 65 6e 74 20 6e 75 |tly diff|erent nu|
|000002d0| 6d 62 65 72 73 20 6f 6e | 20 57 69 6e 64 6f 77 73 |mbers on| Windows|
|000002e0| 2e 02 2d 2d 0e 53 20 6d | 47 65 74 54 61 73 6b 4c |..--.S m|GetTaskL|
|000002f0| 69 73 74 46 2d 2d 20 52 | 65 74 75 72 6e 73 20 61 |istF-- R|eturns a|
|00000300| 20 73 74 72 69 6e 67 20 | 6f 66 20 61 6c 6c 20 63 | string |of all c|
|00000310| 75 72 72 65 6e 74 6c 79 | 20 72 75 6e 6e 69 6e 67 |urrently| running|
|00000320| 20 74 61 73 6b 73 2c 20 | 77 69 74 68 20 74 68 65 | tasks, |with the|
|00000330| 20 66 6f 6c 6c 6f 77 69 | 6e 67 2a 2d 2d 20 69 6e | followi|ng*-- in|
|00000340| 66 6f 20 6f 6e 20 65 61 | 63 68 20 6c 69 6e 65 2c |fo on ea|ch line,|
|00000350| 20 73 65 70 61 72 61 74 | 65 64 20 62 79 20 63 6f | separat|ed by co|
|00000360| 6d 6d 61 73 3a 39 2d 2d | 20 20 20 74 61 73 6b 4e |mmas:9--| taskN|
|00000370| 61 6d 65 2c 20 74 61 73 | 6b 49 44 2c 20 70 61 72 |ame, tas|kID, par|
|00000380| 65 6e 74 54 61 73 6b 49 | 44 2c 20 69 6e 73 74 61 |entTaskI|D, insta|
|00000390| 6e 63 65 49 44 2c 20 6d | 6f 64 75 6c 65 49 44 3d |nceID, m|oduleID=|
|000003a0| 2d 2d 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 74 |-- On th|e Mac, t|
|000003b0| 61 73 6b 49 44 2c 20 69 | 6e 73 74 61 6e 63 65 49 |askID, i|nstanceI|
|000003c0| 44 20 61 6e 64 20 6d 6f | 64 75 6c 65 49 44 20 61 |D and mo|duleID a|
|000003d0| 72 65 20 69 64 65 6e 74 | 69 63 61 6c 2e 45 2d 2d |re ident|ical.E--|
|000003e0| 20 4f 6e 20 74 68 65 20 | 4d 61 63 2c 20 74 61 73 | On the |Mac, tas|
|000003f0| 6b 49 44 73 20 61 72 65 | 20 75 6e 69 71 75 65 20 |kIDs are| unique |
|00000400| 74 6f 20 65 61 63 68 20 | 4d 61 73 74 65 72 41 70 |to each |MasterAp|
|00000410| 70 20 58 4f 62 6a 65 63 | 74 20 69 6e 73 74 61 6e |p XObjec|t instan|
|00000420| 63 65 2c 4b 2d 2d 20 62 | 65 63 61 75 73 65 20 74 |ce,K-- b|ecause t|
|00000430| 61 73 6b 49 44 73 20 61 | 72 65 20 6d 61 69 6e 74 |askIDs a|re maint|
|00000440| 61 69 6e 65 64 20 62 79 | 20 4d 61 73 74 65 72 41 |ained by| MasterA|
|00000450| 70 70 2c 20 6e 6f 74 20 | 62 79 20 74 68 65 20 73 |pp, not |by the s|
|00000460| 79 73 74 65 6d 20 73 6f | 66 74 77 61 72 65 2e 3b |ystem so|ftware.;|
|00000470| 2d 2d 20 44 6f 20 6e 6f | 74 20 75 73 65 20 6f 6e |-- Do no|t use on|
|00000480| 65 20 69 6e 73 74 61 6e | 63 65 27 73 20 74 61 73 |e instan|ce's tas|
|00000490| 6b 49 44 73 20 77 69 74 | 68 20 61 6e 6f 74 68 65 |kIDs wit|h anothe|
|000004a0| 72 20 69 6e 73 74 61 6e | 63 65 2e 48 2d 2d 20 4f |r instan|ce.H-- O|
|000004b0| 6e 20 74 68 65 20 4d 61 | 63 2c 20 6f 6e 6c 79 20 |n the Ma|c, only |
|000004c0| 74 68 65 20 46 69 6e 64 | 65 72 20 68 61 73 20 30 |the Find|er has 0|
|000004d0| 20 66 6f 72 20 70 61 72 | 65 6e 74 54 61 73 6b 49 | for par|entTaskI|
|000004e0| 44 2e 20 41 6c 6c 20 6f | 74 68 65 72 20 74 61 73 |D. All o|ther tas|
|000004f0| 6b 49 44 73 4a 2d 2d 20 | 61 72 65 20 70 6f 73 69 |kIDsJ-- |are posi|
|00000500| 74 69 76 65 20 69 6e 74 | 65 67 65 72 73 20 33 32 |tive int|egers 32|
|00000510| 20 6f 72 20 68 69 67 68 | 65 72 3b 20 61 6e 79 20 | or high|er; any |
|00000520| 6f 74 68 65 72 20 76 61 | 6c 75 65 20 69 6e 64 69 |other va|lue indi|
|00000530| 63 61 74 65 73 20 61 6e | 20 65 72 72 6f 72 2e 43 |cates an| error.C|
|00000540| 2d 2d 20 42 65 77 61 72 | 65 20 6f 66 20 74 61 73 |-- Bewar|e of tas|
|00000550| 6b 4e 61 6d 65 73 20 63 | 6f 6e 74 61 69 6e 69 6e |kNames c|ontainin|
|00000560| 67 20 63 6f 6d 6d 61 73 | 20 77 68 65 6e 20 69 6e |g commas| when in|
|00000570| 74 65 72 70 72 65 74 69 | 6e 67 20 72 65 73 75 6c |terpreti|ng resul|
|00000580| 74 73 21 0d 53 20 6d 47 | 65 74 54 61 73 6b 49 44 |ts!.S mG|etTaskID|
|00000590| 73 46 2d 2d 20 52 65 74 | 75 72 6e 73 20 61 20 73 |sF-- Ret|urns a s|
|000005a0| 74 72 69 6e 67 20 6f 66 | 20 74 68 65 20 74 61 73 |tring of| the tas|
|000005b0| 6b 49 44 73 20 6f 66 20 | 61 6c 6c 20 63 75 72 72 |kIDs of |all curr|
|000005c0| 65 6e 74 6c 79 20 72 75 | 6e 6e 69 6e 67 20 74 61 |ently ru|nning ta|
|000005d0| 73 6b 73 2c 20 61 6c 6c | 4c 2d 2d 20 6f 6e 20 6f |sks, all|L-- on o|
|000005e0| 6e 65 20 6c 69 6e 65 2c | 20 73 65 70 61 72 61 74 |ne line,| separat|
|000005f0| 65 64 20 62 79 20 73 70 | 61 63 65 73 2e 20 55 73 |ed by sp|aces. Us|
|00000600| 65 20 27 77 6f 72 64 27 | 20 74 6f 20 77 61 6c 6b |e 'word'| to walk|
|00000610| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 72 65 73 | through| the res|
|00000620| 75 6c 74 73 2e 4a 2d 2d | 20 54 68 69 73 20 69 73 |ults.J--| This is|
|00000630| 20 6d 6f 72 65 20 70 72 | 65 63 69 73 65 20 74 68 | more pr|ecise th|
|00000640| 61 6e 20 6d 47 65 74 54 | 61 73 6b 4c 69 73 74 2c |an mGetT|askList,|
|00000650| 20 62 65 63 61 75 73 65 | 20 61 20 74 61 73 6b 4e | because| a taskN|
|00000660| 61 6d 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 61 |ame cont|aining a|
|00000670| 4c 2d 2d 20 63 6f 6d 6d | 61 20 77 6f 6e 27 74 20 |L-- comm|a won't |
|00000680| 61 66 66 65 63 74 20 74 | 68 65 20 70 6f 73 69 74 |affect t|he posit|
|00000690| 69 6f 6e 20 6f 66 20 74 | 68 65 20 72 65 73 75 6c |ion of t|he resul|
|000006a0| 74 73 2e 20 53 65 65 20 | 6d 47 65 74 54 61 73 6b |ts. See |mGetTask|
|000006b0| 4c 69 73 74 20 66 6f 72 | 20 6d 6f 72 65 36 2d 2d |List for| more6--|
|000006c0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|000006d0| 75 74 20 4d 61 63 2d 73 | 70 65 63 69 66 69 63 20 |ut Mac-s|pecific |
|000006e0| 69 73 73 75 65 73 20 77 | 69 74 68 20 74 61 73 6b |issues w|ith task|
|000006f0| 49 44 73 2e 14 53 49 20 | 6d 54 61 73 6b 4e 61 6d |IDs..SI |mTaskNam|
|00000700| 65 2c 20 74 61 73 6b 49 | 44 51 2d 2d 20 52 65 74 |e, taskI|DQ-- Ret|
|00000710| 75 72 6e 73 20 69 6e 74 | 65 72 6e 61 6c 20 6e 61 |urns int|ernal na|
|00000720| 6d 65 20 66 6f 72 20 61 | 20 74 61 73 6b 49 44 2e |me for a| taskID.|
|00000730| 20 4f 6e 20 74 68 65 20 | 4d 61 63 2c 20 69 66 20 | On the |Mac, if |
|00000740| 74 68 65 20 74 61 73 6b | 20 69 73 20 61 6e 20 61 |the task| is an a|
|00000750| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 4d 2d 2d 20 74 |pplicati|on,M-- t|
|00000760| 68 69 73 20 69 73 20 74 | 68 65 20 73 61 6d 65 20 |his is t|he same |
|00000770| 74 65 78 74 20 74 68 61 | 74 27 73 20 64 69 73 70 |text tha|t's disp|
|00000780| 6c 61 79 65 64 20 6f 6e | 20 74 68 65 20 61 70 70 |layed on| the app|
|00000790| 6c 69 63 61 74 69 6f 6e | 73 20 70 75 6c 6c 2d 64 |lication|s pull-d|
|000007a0| 6f 77 6e 20 6d 65 6e 75 | 2e 3c 2d 2d 20 55 73 65 |own menu|.<-- Use|
|000007b0| 20 6d 4d 6f 64 75 6c 65 | 46 69 6c 65 4e 61 6d 65 | mModule|FileName|
|000007c0| 20 74 6f 20 67 65 74 20 | 74 68 65 20 66 75 6c 6c | to get |the full|
|000007d0| 20 66 69 6c 65 6e 61 6d | 65 20 6f 66 20 74 68 65 | filenam|e of the|
|000007e0| 20 74 61 73 6b 2e 16 49 | 49 20 6d 54 61 73 6b 50 | task..I|I mTaskP|
|000007f0| 61 72 65 6e 74 2c 20 74 | 61 73 6b 49 44 22 2d 2d |arent, t|askID"--|
|00000800| 20 52 65 74 75 72 6e 73 | 20 74 68 65 20 74 61 73 | Returns| the tas|
|00000810| 6b 27 73 20 70 61 72 65 | 6e 74 20 74 61 73 6b 2e |k's pare|nt task.|
|00000820| 18 49 49 20 6d 54 61 73 | 6b 49 6e 73 74 61 6e 63 |.II mTas|kInstanc|
|00000830| 65 2c 20 74 61 73 6b 49 | 44 53 2d 2d 20 52 65 74 |e, taskI|DS-- Ret|
|00000840| 75 72 6e 73 20 61 20 74 | 61 73 6b 27 73 20 69 6e |urns a t|ask's in|
|00000850| 73 74 61 6e 63 65 49 44 | 2e 20 4f 6e 20 74 68 65 |stanceID|. On the|
|00000860| 20 4d 61 63 2c 20 74 68 | 65 20 74 61 73 6b 49 44 | Mac, th|e taskID|
|00000870| 20 61 6e 64 20 69 6e 73 | 74 61 6e 63 65 49 44 20 | and ins|tanceID |
|00000880| 61 72 65 20 74 68 65 20 | 73 61 6d 65 2e 47 2d 2d |are the |same.G--|
|00000890| 20 52 65 74 75 72 6e 73 | 20 74 68 65 20 73 61 6d | Returns| the sam|
|000008a0| 65 20 49 44 20 70 72 6f | 76 69 64 65 64 2c 20 6f |e ID pro|vided, o|
|000008b0| 72 20 30 20 69 66 20 74 | 68 65 20 74 61 73 6b 49 |r 0 if t|he taskI|
|000008c0| 44 20 69 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 76 |D is no |longer v|
|000008d0| 61 6c 69 64 2e 16 49 49 | 20 6d 54 61 73 6b 4d 6f |alid..II| mTaskMo|
|000008e0| 64 75 6c 65 2c 20 74 61 | 73 6b 49 44 4f 2d 2d 20 |dule, ta|skIDO-- |
|000008f0| 52 65 74 75 72 6e 73 20 | 61 20 74 61 73 6b 27 73 |Returns |a task's|
|00000900| 20 6d 6f 64 75 6c 65 49 | 44 2e 20 4f 6e 20 74 68 | moduleI|D. On th|
|00000910| 65 20 4d 61 63 2c 20 74 | 68 65 20 74 61 73 6b 49 |e Mac, t|he taskI|
|00000920| 44 20 61 6e 64 20 6d 6f | 64 75 6c 65 49 44 20 61 |D and mo|duleID a|
|00000930| 72 65 20 74 68 65 20 73 | 61 6d 65 2e 47 2d 2d 20 |re the s|ame.G-- |
|00000940| 52 65 74 75 72 6e 73 20 | 74 68 65 20 73 61 6d 65 |Returns |the same|
|00000950| 20 49 44 20 70 72 6f 76 | 69 64 65 64 2c 20 6f 72 | ID prov|ided, or|
|00000960| 20 30 20 69 66 20 74 68 | 65 20 74 61 73 6b 49 44 | 0 if th|e taskID|
|00000970| 20 69 73 20 6e 6f 20 6c | 6f 6e 67 65 72 20 76 61 | is no l|onger va|
|00000980| 6c 69 64 2e 16 49 49 20 | 6d 54 61 73 6b 45 76 65 |lid..II |mTaskEve|
|00000990| 6e 74 73 2c 20 74 61 73 | 6b 49 44 4c 2d 2d 20 52 |nts, tas|kIDL-- R|
|000009a0| 65 74 75 72 6e 73 20 74 | 68 65 20 6e 75 6d 62 65 |eturns t|he numbe|
|000009b0| 72 20 6f 66 20 65 76 65 | 6e 74 73 20 77 61 69 74 |r of eve|nts wait|
|000009c0| 69 6e 67 20 66 6f 72 20 | 74 68 65 20 74 61 73 6b |ing for |the task|
|000009d0| 20 74 6f 20 70 72 6f 63 | 65 73 73 2e 20 4f 6e 20 | to proc|ess. On |
|000009e0| 74 68 65 20 4d 61 63 2c | 4c 2d 2d 20 74 68 69 73 |the Mac,|L-- this|
|000009f0| 20 6e 65 76 65 72 20 72 | 65 74 75 72 6e 73 20 6d | never r|eturns m|
|00000a00| 6f 72 65 20 74 68 61 6e | 20 31 2c 20 61 6e 64 20 |ore than| 1, and |
|00000a10| 61 6c 77 61 79 73 20 72 | 65 74 75 72 6e 73 20 30 |always r|eturns 0|
|00000a20| 20 66 6f 72 20 74 61 73 | 6b 73 20 6f 74 68 65 72 | for tas|ks other|
|00000a30| 20 74 68 61 6e 4a 2d 2d | 20 74 68 65 20 44 69 72 | thanJ--| the Dir|
|00000a40| 65 63 74 6f 72 20 74 61 | 73 6b 20 69 74 73 65 6c |ector ta|sk itsel|
|00000a50| 66 20 28 62 65 63 61 75 | 73 65 20 6f 66 20 64 69 |f (becau|se of di|
|00000a60| 66 66 65 72 65 6e 63 65 | 73 20 69 6e 20 74 68 65 |fference|s in the|
|00000a70| 20 4d 61 63 20 61 6e 64 | 20 57 69 6e 64 6f 77 73 | Mac and| Windows|
|00000a80| 43 2d 2d 20 65 76 65 6e | 74 20 70 72 6f 63 65 73 |C-- even|t proces|
|00000a90| 73 69 6e 67 20 61 72 63 | 68 69 74 65 63 74 75 72 |sing arc|hitectur|
|00000aa0| 65 29 2e 20 52 65 74 75 | 72 6e 73 20 2d 31 20 69 |e). Retu|rns -1 i|
|00000ab0| 66 20 74 61 73 6b 49 44 | 20 69 73 20 69 6e 76 61 |f taskID| is inva|
|00000ac0| 6c 69 64 2e 1d 53 49 20 | 6d 47 65 74 54 61 73 6b |lid..SI |mGetTask|
|00000ad0| 57 69 6e 64 6f 77 4c 69 | 73 74 2c 20 74 61 73 6b |WindowLi|st, task|
|00000ae0| 49 44 4c 2d 2d 20 47 65 | 74 20 61 20 6c 69 73 74 |IDL-- Ge|t a list|
|00000af0| 20 6f 66 20 61 6c 6c 20 | 77 69 6e 64 6f 77 73 20 | of all |windows |
|00000b00| 6f 77 6e 65 64 20 62 79 | 20 74 68 65 20 74 61 73 |owned by| the tas|
|00000b10| 6b 2c 20 6f 6e 65 20 70 | 65 72 20 6c 69 6e 65 2c |k, one p|er line,|
|00000b20| 20 69 6e 20 74 68 65 20 | 66 6f 72 6d 61 74 3a 42 | in the |format:B|
|00000b30| 2d 2d 20 20 20 77 69 6e | 64 6f 77 4e 61 6d 65 2c |-- win|dowName,|
|00000b40| 20 77 69 6e 64 6f 77 49 | 44 2c 20 70 61 72 65 6e | windowI|D, paren|
|00000b50| 74 57 69 6e 64 6f 77 49 | 44 2c 20 68 61 73 43 68 |tWindowI|D, hasCh|
|00000b60| 69 6c 64 72 65 6e 2c 20 | 77 69 6e 64 6f 77 54 79 |ildren, |windowTy|
|00000b70| 70 65 49 2d 2d 20 4f 6e | 20 74 68 65 20 4d 61 63 |peI-- On| the Mac|
|00000b80| 2c 20 70 61 72 65 6e 74 | 57 69 6e 64 6f 77 49 44 |, parent|WindowID|
|00000b90| 20 69 73 20 61 6c 77 61 | 79 73 20 30 2e 20 42 65 | is alwa|ys 0. Be|
|00000ba0| 63 61 75 73 65 20 77 69 | 6e 64 6f 77 4e 61 6d 65 |cause wi|ndowName|
|00000bb0| 20 6d 61 79 20 63 6f 6e | 74 61 69 6e 48 2d 2d 20 | may con|tainH-- |
|00000bc0| 63 6f 6d 6d 61 73 2c 20 | 6d 47 65 74 54 61 73 6b |commas, |mGetTask|
|00000bd0| 57 69 6e 64 6f 77 49 44 | 73 20 69 73 20 61 20 6d |WindowID|s is a m|
|00000be0| 6f 72 65 20 62 75 6c 6c | 65 74 70 72 6f 6f 66 20 |ore bull|etproof |
|00000bf0| 6d 65 74 68 6f 64 20 6f | 66 20 69 64 65 6e 74 69 |method o|f identi|
|00000c00| 66 79 69 6e 67 0f 2d 2d | 20 61 6c 6c 20 77 69 6e |fying.--| all win|
|00000c10| 64 6f 77 73 2e 16 58 20 | 6d 44 6f 6e 74 55 73 65 |dows..X |mDontUse|
|00000c20| 4c 61 79 65 72 4d 61 6e | 61 67 65 72 12 58 20 6d |LayerMan|ager.X m|
|00000c30| 55 73 65 4c 61 79 65 72 | 4d 61 6e 61 67 65 72 4d |UseLayer|ManagerM|
|00000c40| 2d 2d 20 44 69 73 61 6c | 6c 6f 77 20 6f 72 20 61 |-- Disal|low or a|
|00000c50| 6c 6c 6f 77 20 75 73 65 | 20 6f 66 20 74 68 65 20 |llow use| of the |
|00000c60| 75 6e 64 6f 63 75 6d 65 | 6e 74 65 64 20 4c 61 79 |undocume|nted Lay|
|00000c70| 65 72 20 4d 61 6e 61 67 | 65 72 20 69 6e 20 64 65 |er Manag|er in de|
|00000c80| 74 65 63 74 69 6e 67 20 | 6f 74 68 65 72 53 2d 2d |tecting |otherS--|
|00000c90| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 27 20 77 | applica|tions' w|
|00000ca0| 69 6e 64 6f 77 73 2e 20 | 54 68 65 20 4c 61 79 65 |indows. |The Laye|
|00000cb0| 72 20 4d 61 6e 61 67 65 | 72 20 69 73 20 6c 69 6b |r Manage|r is lik|
|00000cc0| 65 6c 79 20 6e 6f 74 20 | 74 6f 20 77 6f 72 6b 20 |ely not |to work |
|00000cd0| 77 69 74 68 20 66 75 74 | 75 72 65 20 4d 61 63 4f |with fut|ure MacO|
|00000ce0| 53 53 2d 2d 20 6f 70 65 | 72 61 74 69 6e 67 20 73 |SS-- ope|rating s|
|00000cf0| 79 73 74 65 6d 20 76 65 | 72 73 69 6f 6e 73 20 28 |ystem ve|rsions (|
|00000d00| 53 79 73 74 65 6d 20 38 | 2e 30 20 26 20 6c 61 74 |System 8|.0 & lat|
|00000d10| 65 72 2c 20 6f 72 20 4e | 65 78 74 2f 4f 53 20 72 |er, or N|ext/OS r|
|00000d20| 65 6c 65 61 73 65 73 29 | 2e 20 42 79 20 64 65 66 |eleases)|. By def|
|00000d30| 61 75 6c 74 2c 56 2d 2d | 20 75 73 65 20 6f 66 20 |ault,V--| use of |
|00000d40| 74 68 65 20 4c 61 79 65 | 72 20 4d 61 6e 61 67 65 |the Laye|r Manage|
|00000d50| 72 20 69 73 20 61 6c 6c | 6f 77 65 64 20 69 66 20 |r is all|owed if |
|00000d60| 74 68 65 20 73 79 73 74 | 65 6d 20 76 65 72 73 69 |the syst|em versi|
|00000d70| 6f 6e 20 69 73 20 37 2e | 31 20 6f 72 20 67 72 65 |on is 7.|1 or gre|
|00000d80| 61 74 65 72 2c 20 62 75 | 74 20 69 73 50 2d 2d 20 |ater, bu|t isP-- |
|00000d90| 64 69 73 61 6c 6c 6f 77 | 65 64 20 69 66 20 69 74 |disallow|ed if it|
|00000da0| 27 73 20 38 2e 30 20 6f | 72 20 67 72 65 61 74 65 |'s 8.0 o|r greate|
|00000db0| 72 2e 20 49 66 20 75 73 | 65 20 6f 66 20 74 68 65 |r. If us|e of the|
|00000dc0| 20 4c 61 79 65 72 20 4d | 61 6e 61 67 65 72 20 69 | Layer M|anager i|
|00000dd0| 73 20 64 69 73 61 6c 6c | 6f 77 65 64 2c 51 2d 2d |s disall|owed,Q--|
|00000de0| 20 79 6f 75 20 63 61 6e | 20 6f 6e 6c 79 20 64 65 | you can| only de|
|00000df0| 74 65 63 74 20 77 69 6e | 64 6f 77 73 20 6f 66 20 |tect win|dows of |
|00000e00| 74 68 65 20 44 69 72 65 | 63 74 6f 72 20 74 61 73 |the Dire|ctor tas|
|00000e10| 6b 20 69 74 73 65 6c 66 | 2e 20 4f 6e 63 65 20 38 |k itself|. Once 8|
|00000e20| 2e 30 20 69 73 20 72 65 | 6c 65 61 73 65 64 2c 3f |.0 is re|leased,?|
|00000e30| 2d 2d 20 63 68 65 63 6b | 20 66 6f 72 20 66 75 74 |-- check| for fut|
|00000e40| 75 72 65 20 72 65 6c 65 | 61 73 65 73 20 6f 66 20 |ure rele|ases of |
|00000e50| 74 68 69 73 20 58 4f 62 | 6a 65 63 74 20 20 77 68 |this XOb|ject wh|
|00000e60| 69 63 68 20 77 69 6c 6c | 20 64 65 74 65 63 74 49 |ich will| detectI|
|00000e70| 2d 2d 20 6f 74 68 65 72 | 20 61 70 70 27 73 20 77 |-- other| app's w|
|00000e80| 69 6e 64 6f 77 73 20 61 | 63 63 6f 72 64 69 6e 67 |indows a|ccording|
|00000e90| 20 74 6f 20 38 2e 30 20 | 73 70 65 63 69 66 69 63 | to 8.0 |specific|
|00000ea0| 61 74 69 6f 6e 73 2e 20 | 54 68 65 73 65 20 74 77 |ations. |These tw|
|00000eb0| 6f 20 6d 65 74 68 6f 64 | 73 4f 2d 2d 20 61 72 65 |o method|sO-- are|
|00000ec0| 20 70 72 6f 76 69 64 65 | 64 20 74 6f 20 61 6c 6c | provide|d to all|
|00000ed0| 6f 77 20 79 6f 75 20 74 | 6f 20 6f 76 65 72 72 69 |ow you t|o overri|
|00000ee0| 64 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 62 |de the d|efault b|
|00000ef0| 65 68 61 76 69 6f 72 20 | 6f 66 20 2a 74 68 69 73 |ehavior |of *this|
|00000f00| 2a 20 76 65 72 73 69 6f | 6e 4d 2d 2d 20 6f 66 20 |* versio|nM-- of |
|00000f10| 74 68 65 20 58 4f 62 6a | 65 63 74 2c 20 77 68 69 |the XObj|ect, whi|
|00000f20| 63 68 20 73 68 6f 75 6c | 64 20 62 65 20 73 61 66 |ch shoul|d be saf|
|00000f30| 65 2c 20 69 66 20 6e 6f | 74 20 66 75 6c 6c 79 20 |e, if no|t fully |
|00000f40| 66 75 6e 63 74 69 6f 6e | 61 6c 2c 20 75 6e 64 65 |function|al, unde|
|00000f50| 72 20 38 2e 30 20 2e 3f | 2d 2d 20 54 68 65 73 65 |r 8.0 .?|-- These|
|00000f60| 20 6d 65 74 68 6f 64 73 | 20 6f 6e 6c 79 20 65 78 | methods| only ex|
|00000f70| 69 73 74 20 69 6e 20 74 | 68 65 20 4d 61 63 20 76 |ist in t|he Mac v|
|00000f80| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 69 73 20 58 |ersion o|f this X|
|00000f90| 4f 62 6a 65 63 74 2e 1c | 53 49 20 6d 47 65 74 54 |Object..|SI mGetT|
|00000fa0| 61 73 6b 57 69 6e 64 6f | 77 49 44 73 2c 20 74 61 |askWindo|wIDs, ta|
|00000fb0| 73 6b 49 44 4c 2d 2d 20 | 52 65 74 75 72 6e 73 20 |skIDL-- |Returns |
|00000fc0| 61 20 73 74 72 69 6e 67 | 20 6f 66 20 74 68 65 20 |a string| of the |
|00000fd0| 77 69 6e 64 6f 77 49 44 | 73 20 6f 66 20 61 6c 6c |windowID|s of all|
|00000fe0| 20 74 68 65 20 74 61 73 | 6b 73 27 20 77 69 6e 64 | the tas|ks' wind|
|00000ff0| 6f 77 73 2c 20 6f 6e 20 | 6f 6e 65 20 6c 69 6e 65 |ows, on |one line|
|00001000| 2c 4c 2d 2d 20 73 65 70 | 61 72 61 74 65 64 20 62 |,L-- sep|arated b|
|00001010| 79 20 73 70 61 63 65 73 | 2e 20 55 73 65 20 27 77 |y spaces|. Use 'w|
|00001020| 6f 72 64 27 20 74 6f 20 | 77 61 6c 6b 20 74 68 72 |ord' to |walk thr|
|00001030| 6f 75 67 68 20 74 68 65 | 20 72 65 73 75 6c 74 73 |ough the| results|
|00001040| 2e 20 4d 6f 72 65 20 70 | 72 65 63 69 73 65 2d 2d |. More p|recise--|
|00001050| 2d 20 62 75 74 20 68 61 | 72 64 65 72 20 74 6f 20 |- but ha|rder to |
|00001060| 75 73 65 20 74 68 61 6e | 20 6d 47 65 74 54 61 73 |use than| mGetTas|
|00001070| 6b 57 69 6e 64 6f 77 4c | 69 73 74 2e 1b 49 49 20 |kWindowL|ist..II |
|00001080| 6d 47 65 74 57 69 6e 64 | 6f 77 54 61 73 6b 2c 20 |mGetWind|owTask, |
|00001090| 77 69 6e 64 6f 77 49 44 | 29 2d 2d 20 52 65 74 75 |windowID|)-- Retu|
|000010a0| 72 6e 73 20 74 68 65 20 | 74 61 73 6b 49 44 20 66 |rns the |taskID f|
|000010b0| 6f 72 20 61 20 67 69 76 | 65 6e 20 77 69 6e 64 6f |or a giv|en windo|
|000010c0| 77 2e 24 49 49 49 20 6d | 52 75 64 65 51 75 69 74 |w.$III m|RudeQuit|
|000010d0| 54 61 73 6b 2c 20 74 61 | 73 6b 49 44 2c 20 65 78 |Task, ta|skID, ex|
|000010e0| 69 74 56 61 6c 75 65 51 | 2d 2d 20 46 6f 72 63 65 |itValueQ|-- Force|
|000010f0| 73 20 61 20 74 61 73 6b | 20 74 6f 20 71 75 69 74 |s a task| to quit|
|00001100| 2e 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 65 78 |. On the| Mac, ex|
|00001110| 69 74 56 61 6c 75 65 20 | 69 73 20 69 67 6e 6f 72 |itValue |is ignor|
|00001120| 65 64 2e 20 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |ed. This| method |
|00001130| 69 73 6e 27 74 20 61 6c | 6c 4c 2d 2d 20 74 68 61 |isn't al|lL-- tha|
|00001140| 74 20 72 75 64 65 20 6f | 6e 20 74 68 65 20 4d 61 |t rude o|n the Ma|
|00001150| 63 2d 2d 20 69 74 20 73 | 65 6e 64 73 20 61 20 53 |c-- it s|ends a S|
|00001160| 79 73 74 65 6d 2d 37 20 | 73 74 61 6e 64 61 72 64 |ystem-7 |standard|
|00001170| 20 27 71 75 69 74 27 20 | 41 70 70 6c 65 45 76 65 | 'quit' |AppleEve|
|00001180| 6e 74 20 28 6f 72 4e 2d | 2d 20 73 69 6d 75 6c 61 |nt (orN-|- simula|
|00001190| 74 65 73 20 61 20 51 75 | 69 74 20 6d 65 6e 75 20 |tes a Qu|it menu |
|000011a0| 63 68 6f 69 63 65 2c 20 | 66 6f 72 20 70 72 65 2d |choice, |for pre-|
|000011b0| 53 79 73 74 65 6d 2d 37 | 20 73 6f 66 74 77 61 72 |System-7| softwar|
|000011c0| 65 29 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |e). Note| that th|
|000011d0| 65 20 61 70 70 4b 2d 2d | 20 79 6f 75 27 72 65 20 |e appK--| you're |
|000011e0| 74 72 79 69 6e 67 20 74 | 6f 20 71 75 69 74 20 6d |trying t|o quit m|
|000011f0| 61 79 20 64 69 73 70 6c | 61 79 20 61 20 27 64 6f |ay displ|ay a 'do|
|00001200| 6e 27 74 20 73 61 76 65 | 27 2f 27 63 61 6e 63 65 |n't save|'/'cance|
|00001210| 6c 27 2f 27 73 61 76 65 | 27 20 64 69 61 6c 6f 67 |l'/'save|' dialog|
|00001220| 2e 4f 2d 2d 20 4e 6f 74 | 65 20 74 68 61 74 20 41 |.O-- Not|e that A|
|00001230| 70 70 6c 65 53 63 72 69 | 70 74 20 69 73 20 2a 6e |ppleScri|pt is *n|
|00001240| 6f 74 2a 20 72 65 71 75 | 69 72 65 64 20 74 6f 20 |ot* requ|ired to |
|00001250| 62 65 20 69 6e 73 74 61 | 6c 6c 65 64 20 74 6f 20 |be insta|lled to |
|00001260| 73 65 6e 64 20 41 70 70 | 6c 65 45 76 65 6e 74 73 |send App|leEvents|
|00001270| 2e 19 49 49 20 6d 54 61 | 73 6b 49 73 52 75 6e 6e |..II mTa|skIsRunn|
|00001280| 69 6e 67 2c 20 74 61 73 | 6b 49 44 3b 2d 2d 20 52 |ing, tas|kID;-- R|
|00001290| 65 74 75 72 6e 73 20 54 | 52 55 45 20 69 66 20 74 |eturns T|RUE if t|
|000012a0| 68 65 20 74 61 73 6b 20 | 69 73 20 73 74 69 6c 6c |he task |is still|
|000012b0| 20 72 75 6e 6e 69 6e 67 | 2c 20 46 41 4c 53 45 20 | running|, FALSE |
|000012c0| 69 66 20 6e 6f 74 2e 19 | 49 49 20 6d 46 65 65 64 |if not..|II mFeed|
|000012d0| 54 69 6d 65 53 6c 69 63 | 65 2c 20 74 61 73 6b 49 |TimeSlic|e, taskI|
|000012e0| 44 4c 2d 2d 20 57 61 6b | 65 73 20 74 68 65 20 74 |DL-- Wak|es the t|
|000012f0| 61 73 6b 20 75 70 2c 20 | 61 6e 64 20 61 6c 6c 6f |ask up, |and allo|
|00001300| 77 73 20 6f 74 68 65 72 | 20 74 61 73 6b 73 20 74 |ws other| tasks t|
|00001310| 6f 20 72 75 6e 2e 20 4f | 6e 20 74 68 65 20 4d 61 |o run. O|n the Ma|
|00001320| 63 2c 20 74 68 69 73 20 | 6d 65 74 68 6f 64 54 2d |c, this |methodT-|
|00001330| 2d 20 64 6f 65 73 20 6e | 6f 74 20 6e 65 63 65 73 |- does n|ot neces|
|00001340| 73 61 72 69 6c 79 20 69 | 6e 73 75 72 65 20 74 68 |sarily i|nsure th|
|00001350| 61 74 20 74 68 65 20 69 | 6e 64 69 63 61 74 65 64 |at the i|ndicated|
|00001360| 20 74 61 73 6b 20 72 75 | 6e 73 20 6e 65 78 74 20 | task ru|ns next |
|00001370| 28 64 75 65 20 74 6f 20 | 64 69 66 66 65 72 65 6e |(due to |differen|
|00001380| 63 65 73 52 2d 2d 20 69 | 6e 20 65 76 65 6e 74 20 |cesR-- i|n event |
|00001390| 70 72 6f 63 65 73 73 69 | 6e 67 20 61 72 63 68 69 |processi|ng archi|
|000013a0| 74 65 63 74 75 72 65 29 | 2c 20 62 75 74 20 69 74 |tecture)|, but it|
|000013b0| 20 64 6f 65 73 20 6d 61 | 6b 65 20 69 74 20 72 75 | does ma|ke it ru|
|000013c0| 6e 20 61 73 20 73 6f 6f | 6e 20 61 73 20 70 6f 73 |n as soo|n as pos|
|000013d0| 73 69 62 6c 65 2e 56 2d | 2d 20 54 68 69 73 20 6d |sible.V-|- This m|
|000013e0| 65 74 68 6f 64 20 6d 61 | 79 20 62 65 20 6e 65 63 |ethod ma|y be nec|
|000013f0| 65 73 73 61 72 79 20 66 | 6f 72 20 61 70 70 73 20 |essary f|or apps |
|00001400| 74 6f 20 70 72 6f 63 65 | 73 73 20 6d 65 73 73 61 |to proce|ss messa|
|00001410| 67 65 73 2e 20 45 73 70 | 65 63 69 61 6c 6c 79 20 |ges. Esp|ecially |
|00001420| 75 73 65 66 75 6c 20 77 | 69 74 68 69 6e 57 2d 2d |useful w|ithinW--|
|00001430| 20 61 20 4c 69 6e 67 6f | 20 72 65 70 65 61 74 20 | a Lingo| repeat |
|00001440| 6c 6f 6f 70 2c 20 77 68 | 69 63 68 20 6e 6f 72 6d |loop, wh|ich norm|
|00001450| 61 6c 6c 79 20 6d 6f 6e | 6f 70 6f 6c 69 7a 65 73 |ally mon|opolizes|
|00001460| 20 61 6c 6c 20 74 69 6d | 65 73 6c 69 63 65 73 2e | all tim|eslices.|
|00001470| 20 52 65 74 75 72 6e 73 | 20 65 72 72 6f 72 20 63 | Returns| error c|
|00001480| 6f 64 65 73 3a 4b 2d 2d | 20 2d 31 3a 20 69 6e 76 |odes:K--| -1: inv|
|00001490| 61 6c 69 64 20 74 61 73 | 6b 49 44 3b 20 2d 32 3a |alid tas|kID; -2:|
|000014a0| 20 74 61 73 6b 20 77 61 | 73 20 61 6c 72 65 61 64 | task wa|s alread|
|000014b0| 79 20 72 75 6e 6e 69 6e | 67 20 28 44 69 72 65 63 |y runnin|g (Direc|
|000014c0| 74 6f 72 20 74 61 73 6b | 20 69 74 73 65 6c 66 29 |tor task| itself)|
|000014d0| 3b 4c 2d 2d 20 30 3a 20 | 6e 6f 20 65 72 72 6f 72 |;L-- 0: |no error|
|000014e0| 2e 20 50 6f 73 73 69 62 | 6c 65 20 73 69 64 65 20 |. Possib|le side |
|000014f0| 65 66 66 65 63 74 3a 20 | 74 68 65 20 44 69 72 65 |effect: |the Dire|
|00001500| 63 74 6f 72 20 74 61 73 | 6b 27 73 20 77 69 6e 64 |ctor tas|k's wind|
|00001510| 6f 77 73 20 6d 61 79 20 | 6e 6f 74 20 62 65 51 2d |ows may |not beQ-|
|00001520| 2d 20 70 72 6f 70 65 72 | 6c 79 20 75 70 64 61 74 |- proper|ly updat|
|00001530| 65 64 20 69 66 20 74 68 | 69 73 20 6d 65 74 68 6f |ed if th|is metho|
|00001540| 64 20 69 73 20 75 73 65 | 64 20 77 69 74 68 69 6e |d is use|d within|
|00001550| 20 61 20 6c 6f 6e 67 20 | 72 65 70 65 61 74 20 6c | a long |repeat l|
|00001560| 6f 6f 70 20 61 6e 64 20 | 74 68 65 20 75 73 65 72 |oop and |the user|
|00001570| 19 2d 2d 20 73 77 69 74 | 63 68 65 73 20 61 70 70 |.-- swit|ches app|
|00001580| 6c 69 63 61 74 69 6f 6e | 73 2e 17 58 20 6d 46 65 |lication|s..X mFe|
|00001590| 65 64 47 65 6e 65 72 69 | 63 54 69 6d 65 53 6c 69 |edGeneri|cTimeSli|
|000015a0| 63 65 4d 2d 2d 20 47 69 | 76 65 73 20 75 70 20 70 |ceM-- Gi|ves up p|
|000015b0| 72 6f 63 65 73 73 6f 72 | 20 74 69 6d 65 20 66 6f |rocessor| time fo|
|000015c0| 72 20 6f 74 68 65 72 20 | 74 61 73 6b 73 20 74 6f |r other |tasks to|
|000015d0| 20 72 75 6e 2e 20 55 73 | 65 66 75 6c 20 77 69 74 | run. Us|eful wit|
|000015e0| 68 69 6e 20 4c 69 6e 67 | 6f 20 72 65 70 65 61 74 |hin Ling|o repeat|
|000015f0| 44 2d 2d 20 6c 6f 6f 70 | 73 2c 20 77 68 69 63 68 |D-- loop|s, which|
|00001600| 20 6e 6f 72 6d 61 6c 6c | 79 20 6d 6f 6e 6f 70 6f | normall|y monopo|
|00001610| 6c 69 7a 65 20 61 6c 6c | 20 74 69 6d 65 73 6c 69 |lize all| timesli|
|00001620| 63 65 73 2e 20 4e 6f 20 | 72 65 74 75 72 6e 20 76 |ces. No |return v|
|00001630| 61 6c 75 65 2e 3f 2d 2d | 20 50 6f 73 73 69 62 6c |alue.?--| Possibl|
|00001640| 65 20 73 69 64 65 20 65 | 66 66 65 63 74 3a 20 74 |e side e|ffect: t|
|00001650| 68 65 20 44 69 72 65 63 | 74 6f 72 20 74 61 73 6b |he Direc|tor task|
|00001660| 27 73 20 77 69 6e 64 6f | 77 73 20 6d 61 79 20 6e |'s windo|ws may n|
|00001670| 6f 74 20 62 65 51 2d 2d | 20 70 72 6f 70 65 72 6c |ot beQ--| properl|
|00001680| 79 20 75 70 64 61 74 65 | 64 20 69 66 20 74 68 69 |y update|d if thi|
|00001690| 73 20 6d 65 74 68 6f 64 | 20 69 73 20 75 73 65 64 |s method| is used|
|000016a0| 20 77 69 74 68 69 6e 20 | 61 20 6c 6f 6e 67 20 72 | within |a long r|
|000016b0| 65 70 65 61 74 20 6c 6f | 6f 70 20 61 6e 64 20 74 |epeat lo|op and t|
|000016c0| 68 65 20 75 73 65 72 19 | 2d 2d 20 73 77 69 74 63 |he user.|-- switc|
|000016d0| 68 65 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |hes appl|ications|
|000016e0| 2e 0f 49 20 6d 44 69 72 | 65 63 74 6f 72 54 61 73 |..I mDir|ectorTas|
|000016f0| 6b 2e 2d 2d 20 52 65 74 | 75 72 6e 73 20 44 69 72 |k.-- Ret|urns Dir|
|00001700| 65 63 74 6f 72 20 6f 72 | 20 74 68 65 20 70 72 6f |ector or| the pro|
|00001710| 6a 65 63 74 6f 72 27 73 | 20 74 61 73 6b 49 44 2e |jector's| taskID.|
|00001720| 17 49 49 20 6d 54 61 73 | 6b 54 6f 46 72 6f 6e 74 |.II mTas|kToFront|
|00001730| 2c 20 74 61 73 6b 49 44 | 49 2d 2d 20 4d 6f 76 65 |, taskID|I-- Move|
|00001740| 73 20 74 68 65 20 74 61 | 73 6b 20 74 6f 20 74 68 |s the ta|sk to th|
|00001750| 65 20 66 72 6f 6e 74 2e | 20 44 6f 65 73 20 6e 6f |e front.| Does no|
|00001760| 74 20 65 78 69 73 74 20 | 6f 6e 20 57 69 6e 64 6f |t exist |on Windo|
|00001770| 77 73 20 62 65 63 61 75 | 73 65 20 6f 66 20 73 6f |ws becau|se of so|
|00001780| 6d 65 4c 2d 2d 20 66 75 | 6e 64 61 6d 65 6e 74 61 |meL-- fu|ndamenta|
|00001790| 6c 20 64 69 66 66 65 72 | 65 6e 63 65 73 20 62 65 |l differ|ences be|
|000017a0| 74 77 65 65 6e 20 4d 61 | 63 20 61 6e 64 20 57 69 |tween Ma|c and Wi|
|000017b0| 6e 20 69 6e 20 74 68 65 | 20 77 61 79 20 74 61 73 |n in the| way tas|
|000017c0| 6b 73 20 61 72 65 20 6d | 61 6e 61 67 65 64 2e 02 |ks are m|anaged..|
|000017d0| 2d 2d 02 2d 2d 13 2d 2d | 20 4d 4f 44 55 4c 45 20 |--.--.--| MODULE |
|000017e0| 46 55 4e 43 54 49 4f 4e | 53 13 2d 2d 20 2d 2d 2d |FUNCTION|S.-- ---|
|000017f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 10 53 20 |--------|-----.S |
|00001800| 6d 47 65 74 4d 6f 64 75 | 6c 65 4c 69 73 74 4b 2d |mGetModu|leListK-|
|00001810| 2d 20 52 65 74 75 72 6e | 73 20 61 20 73 74 72 69 |- Return|s a stri|
|00001820| 6e 67 20 6f 66 20 61 6c | 6c 20 63 75 72 72 65 6e |ng of al|l curren|
|00001830| 74 6c 79 20 6c 6f 61 64 | 65 64 20 6d 6f 64 75 6c |tly load|ed modul|
|00001840| 65 73 2c 20 6f 6e 65 20 | 70 65 72 20 6c 69 6e 65 |es, one |per line|
|00001850| 2c 20 77 69 74 68 20 74 | 68 65 3b 2d 2d 20 66 6f |, with t|he;-- fo|
|00001860| 6c 6c 6f 77 69 6e 67 20 | 69 6e 66 6f 72 6d 61 74 |llowing |informat|
|00001870| 69 6f 6e 20 6f 6e 20 65 | 61 63 68 20 6c 69 6e 65 |ion on e|ach line|
|00001880| 2c 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 63 |, separa|ted by c|
|00001890| 6f 6d 6d 61 73 3a 29 2d | 2d 20 20 20 6d 6f 64 75 |ommas:)-|- modu|
|000018a0| 6c 65 4e 61 6d 65 2c 20 | 6d 6f 64 75 6c 65 49 44 |leName, |moduleID|
|000018b0| 2c 20 6d 6f 64 75 6c 65 | 46 69 6c 65 4e 61 6d 65 |, module|FileName|
|000018c0| 4f 2d 2d 20 4e 6f 74 65 | 3a 20 73 69 6e 63 65 20 |O-- Note|: since |
|000018d0| 6d 6f 64 75 6c 65 4e 61 | 6d 65 20 6f 72 20 6d 6f |moduleNa|me or mo|
|000018e0| 64 75 6c 65 46 69 6c 65 | 4e 61 6d 65 20 6d 69 67 |duleFile|Name mig|
|000018f0| 68 74 20 63 6f 6e 74 61 | 69 6e 20 63 6f 6d 6d 61 |ht conta|in comma|
|00001900| 73 2c 20 6d 47 65 74 4d | 6f 64 75 6c 65 49 44 73 |s, mGetM|oduleIDs|
|00001910| 34 2d 2d 20 69 73 20 61 | 20 6d 6f 72 65 20 62 75 |4-- is a| more bu|
|00001920| 6c 6c 65 74 70 72 6f 6f | 66 20 77 61 79 20 6f 66 |lletproo|f way of|
|00001930| 20 6c 69 73 74 69 6e 67 | 20 61 6c 6c 20 6d 6f 64 | listing| all mod|
|00001940| 75 6c 65 73 2e 0f 53 20 | 6d 47 65 74 4d 6f 64 75 |ules..S |mGetModu|
|00001950| 6c 65 49 44 73 49 2d 2d | 20 52 65 74 75 72 6e 73 |leIDsI--| Returns|
|00001960| 20 61 20 73 74 72 69 6e | 67 20 6f 66 20 74 68 65 | a strin|g of the|
|00001970| 20 6d 6f 64 75 6c 65 49 | 44 73 20 6f 66 20 61 6c | moduleI|Ds of al|
|00001980| 6c 20 72 75 6e 6e 69 6e | 67 20 6d 6f 64 75 6c 65 |l runnin|g module|
|00001990| 73 2c 20 6f 6e 20 6f 6e | 65 20 6c 69 6e 65 2c 4b |s, on on|e line,K|
|000019a0| 2d 2d 20 73 65 70 61 72 | 61 74 65 64 20 62 79 20 |-- separ|ated by |
|000019b0| 73 70 61 63 65 73 2e 20 | 55 73 65 20 27 77 6f 72 |spaces. |Use 'wor|
|000019c0| 64 27 20 74 6f 20 77 61 | 6c 6b 20 74 68 72 6f 75 |d' to wa|lk throu|
|000019d0| 67 68 20 74 68 65 20 72 | 65 73 75 6c 74 73 2e 20 |gh the r|esults. |
|000019e0| 4f 6e 20 74 68 65 20 4d | 61 63 2c 25 2d 2d 20 74 |On the M|ac,%-- t|
|000019f0| 68 69 73 20 69 73 20 61 | 20 73 79 6e 6f 6e 79 6d |his is a| synonym|
|00001a00| 20 66 6f 72 20 6d 47 65 | 74 54 61 73 6b 49 44 73 | for mGe|tTaskIDs|
|00001a10| 2e 18 49 49 20 6d 4d 6f | 64 75 6c 65 54 61 73 6b |..II mMo|duleTask|
|00001a20| 2c 20 6d 6f 64 75 6c 65 | 49 44 4f 2d 2d 20 52 65 |, module|IDO-- Re|
|00001a30| 74 75 72 6e 73 20 74 61 | 73 6b 69 64 49 44 20 6f |turns ta|skidID o|
|00001a40| 66 20 74 68 65 20 67 69 | 76 65 6e 20 6d 6f 64 75 |f the gi|ven modu|
|00001a50| 6c 65 49 44 20 28 61 6c | 77 61 79 73 20 74 68 65 |leID (al|ways the|
|00001a60| 20 73 61 6d 65 20 6e 75 | 6d 62 65 72 2c 20 6f 6e | same nu|mber, on|
|00001a70| 20 74 68 65 20 4d 61 63 | 29 2e 1c 53 49 20 6d 4d | the Mac|)..SI mM|
|00001a80| 6f 64 75 6c 65 46 69 6c | 65 4e 61 6d 65 2c 20 6d |oduleFil|eName, m|
|00001a90| 6f 64 75 6c 65 49 44 4b | 2d 2d 20 47 65 74 20 66 |oduleIDK|-- Get f|
|00001aa0| 75 6c 6c 20 70 61 74 68 | 20 74 6f 20 61 20 74 61 |ull path| to a ta|
|00001ab0| 73 6b 27 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |sk's app|lication|
|00001ac0| 20 66 69 6c 65 2e 20 43 | 61 6e 20 75 73 65 20 61 | file. C|an use a|
|00001ad0| 20 74 61 73 6b 49 44 20 | 6f 6e 20 74 68 65 20 4d | taskID |on the M|
|00001ae0| 61 63 2e 13 53 20 6d 44 | 69 72 65 63 74 6f 72 46 |ac..S mD|irectorF|
|00001af0| 69 6c 65 4e 61 6d 65 2f | 2d 2d 20 52 65 74 75 72 |ileName/|-- Retur|
|00001b00| 6e 73 20 74 68 65 20 66 | 69 6c 65 6e 61 6d 65 20 |ns the f|ilename |
|00001b10| 6f 66 20 74 68 65 20 44 | 69 72 65 63 74 6f 72 20 |of the D|irector |
|00001b20| 6d 6f 64 75 6c 65 2e 18 | 53 49 20 6d 4d 6f 64 75 |module..|SI mModu|
|00001b30| 6c 65 4e 61 6d 65 2c 20 | 6d 6f 64 75 6c 65 49 44 |leName, |moduleID|
|00001b40| 52 2d 2d 20 47 65 74 20 | 6d 6f 64 75 6c 65 20 6e |R-- Get |module n|
|00001b50| 61 6d 65 2e 20 4f 6e 20 | 74 68 65 20 4d 61 63 2c |ame. On |the Mac,|
|00001b60| 20 74 68 69 73 20 69 73 | 20 74 68 65 20 61 70 70 | this is| the app|
|00001b70| 27 73 20 63 72 65 61 74 | 6f 72 20 61 6e 64 20 66 |'s creat|or and f|
|00001b80| 69 6c 65 74 79 70 65 20 | 73 69 67 6e 61 74 75 72 |iletype |signatur|
|00001b90| 65 73 2c 42 2d 2d 20 72 | 65 74 75 72 6e 65 64 20 |es,B-- r|eturned |
|00001ba0| 61 73 20 61 6e 20 38 2d | 63 68 61 72 61 63 74 65 |as an 8-|characte|
|00001bb0| 72 20 73 74 72 69 6e 67 | 2e 20 43 61 6e 20 75 73 |r string|. Can us|
|00001bc0| 65 20 61 20 74 61 73 6b | 49 44 20 6f 6e 20 74 68 |e a task|ID on th|
|00001bd0| 65 20 4d 61 63 2e 1d 49 | 49 20 6d 4d 6f 64 75 6c |e Mac..I|I mModul|
|00001be0| 65 49 73 52 75 6e 6e 69 | 6e 67 2c 20 6d 6f 64 75 |eIsRunni|ng, modu|
|00001bf0| 6c 65 49 44 51 2d 2d 20 | 52 65 74 75 72 6e 73 20 |leIDQ-- |Returns |
|00001c00| 54 52 55 45 20 69 66 20 | 74 68 65 20 6d 6f 64 75 |TRUE if |the modu|
|00001c10| 6c 65 20 69 73 20 73 74 | 69 6c 6c 20 72 75 6e 6e |le is st|ill runn|
|00001c20| 69 6e 67 2c 20 66 61 6c | 73 65 20 69 66 20 6e 6f |ing, fal|se if no|
|00001c30| 74 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 74 |t. On th|e Mac, t|
|00001c40| 68 69 73 20 69 73 20 2d | 2d 20 61 20 73 79 6e 6f |his is -|- a syno|
|00001c50| 6e 79 6d 20 66 6f 72 20 | 6d 54 61 73 6b 49 73 52 |nym for |mTaskIsR|
|00001c60| 75 6e 6e 69 6e 67 2e 25 | 49 49 53 20 6d 55 6e 6c |unning.%|IIS mUnl|
|00001c70| 6f 61 64 4d 6f 64 75 6c | 65 2c 20 6d 6f 64 75 6c |oadModul|e, modul|
|00001c80| 65 49 44 2c 20 61 70 70 | 4f 72 44 6c 6c 4b 2d 2d |eID, app|OrDllK--|
|00001c90| 20 46 6f 72 63 65 20 61 | 20 6d 6f 64 75 6c 65 20 | Force a| module |
|00001ca0| 74 6f 20 71 75 69 74 2e | 20 55 73 65 73 20 74 68 |to quit.| Uses th|
|00001cb0| 65 20 73 61 6d 65 20 61 | 70 70 72 6f 61 63 68 20 |e same a|pproach |
|00001cc0| 61 73 20 6d 54 61 73 6b | 51 75 69 74 2c 20 62 75 |as mTask|Quit, bu|
|00001cd0| 74 20 6d 61 74 63 68 65 | 73 47 2d 2d 20 74 68 65 |t matche|sG-- the|
|00001ce0| 20 73 79 6e 74 61 78 20 | 6f 66 20 74 68 65 20 57 | syntax |of the W|
|00001cf0| 69 6e 64 6f 77 73 20 6d | 65 74 68 6f 64 2e 20 61 |indows m|ethod. a|
|00001d00| 70 70 4f 72 44 6c 6c 20 | 69 73 20 69 72 72 65 6c |ppOrDll |is irrel|
|00001d10| 65 76 61 6e 74 20 6f 6e | 20 74 68 65 20 4d 61 63 |evant on| the Mac|
|00001d20| 2e 11 49 20 6d 44 69 72 | 65 63 74 6f 72 4d 6f 64 |..I mDir|ectorMod|
|00001d30| 75 6c 65 4b 2d 2d 20 52 | 65 74 75 72 6e 73 20 74 |uleK-- R|eturns t|
|00001d40| 68 65 20 6d 6f 64 75 6c | 65 49 44 20 6f 66 20 74 |he modul|eID of t|
|00001d50| 68 65 20 44 69 72 65 63 | 74 6f 72 20 74 61 73 6b |he Direc|tor task|
|00001d60| 2e 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 74 68 |. On the| Mac, th|
|00001d70| 69 73 20 69 73 20 61 20 | 73 79 6e 6f 6e 79 6d 15 |is is a |synonym.|
|00001d80| 2d 2d 20 66 6f 72 20 6d | 44 69 72 65 63 74 6f 72 |-- for m|Director|
|00001d90| 54 61 73 6b 2e 02 2d 2d | 02 2d 2d 13 2d 2d 20 57 |Task..--|.--.-- W|
|00001da0| 49 4e 44 4f 57 20 46 55 | 4e 43 54 49 4f 4e 53 13 |INDOW FU|NCTIONS.|
|00001db0| 2d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |-- -----|--------|
|00001dc0| 2d 2d 2d 02 2d 2d 16 53 | 20 6d 47 65 74 50 61 72 |---.--.S| mGetPar|
|00001dd0| 65 6e 74 57 69 6e 64 6f | 77 4c 69 73 74 4d 2d 2d |entWindo|wListM--|
|00001de0| 20 52 65 74 75 72 6e 73 | 20 61 20 73 74 72 69 6e | Returns| a strin|
|00001df0| 67 20 6f 66 20 61 6c 6c | 20 74 6f 70 2d 6c 65 76 |g of all| top-lev|
|00001e00| 65 6c 20 77 69 6e 64 6f | 77 73 20 6f 77 6e 65 64 |el windo|ws owned|
|00001e10| 20 62 79 20 61 6c 6c 20 | 74 61 73 6b 73 2c 20 6f | by all |tasks, o|
|00001e20| 6e 65 20 70 65 72 20 6c | 69 6e 65 2f 2d 2d 20 77 |ne per l|ine/-- w|
|00001e30| 69 74 68 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ith the |followin|
|00001e40| 67 20 69 6e 66 6f 20 73 | 65 70 61 72 61 74 65 64 |g info s|eparated|
|00001e50| 20 62 79 20 63 6f 6d 6d | 61 73 3a 42 2d 2d 20 20 | by comm|as:B-- |
|00001e60| 20 77 69 6e 64 6f 77 4e | 61 6d 65 2c 20 77 69 6e | windowN|ame, win|
|00001e70| 64 6f 77 49 44 2c 20 70 | 61 72 65 6e 74 57 69 6e |dowID, p|arentWin|
|00001e80| 64 6f 77 49 44 2c 20 68 | 61 73 43 68 69 6c 64 72 |dowID, h|asChildr|
|00001e90| 65 6e 2c 20 77 69 6e 64 | 6f 77 54 79 70 65 50 2d |en, wind|owTypeP-|
|00001ea0| 2d 20 54 6f 70 2d 6c 65 | 76 65 6c 20 77 69 6e 64 |- Top-le|vel wind|
|00001eb0| 6f 77 73 20 61 6c 77 61 | 79 73 20 68 61 76 65 20 |ows alwa|ys have |
|00001ec0| 70 61 72 65 6e 74 49 44 | 20 30 2c 20 62 75 74 20 |parentID| 0, but |
|00001ed0| 74 68 65 20 64 61 74 61 | 20 66 6f 72 6d 61 74 20 |the data| format |
|00001ee0| 72 65 74 75 72 6e 65 64 | 20 69 73 20 74 68 65 4e |returned| is theN|
|00001ef0| 2d 2d 20 73 61 6d 65 20 | 64 61 74 61 20 66 6f 72 |-- same |data for|
|00001f00| 6d 61 74 20 72 65 74 75 | 72 6e 65 64 20 62 79 20 |mat retu|rned by |
|00001f10| 6d 47 65 74 43 68 69 6c | 64 57 69 6e 64 6f 77 4c |mGetChil|dWindowL|
|00001f20| 69 73 74 2e 20 42 65 63 | 61 75 73 65 20 77 69 6e |ist. Bec|ause win|
|00001f30| 64 6f 77 4e 61 6d 65 73 | 20 6d 69 67 68 74 41 2d |dowNames| mightA-|
|00001f40| 2d 20 63 6f 6e 74 61 69 | 6e 20 63 6f 6d 6d 61 73 |- contai|n commas|
|00001f50| 2c 20 75 73 69 6e 67 20 | 6d 47 65 74 50 61 72 65 |, using |mGetPare|
|00001f60| 6e 74 57 69 6e 64 6f 77 | 49 44 73 20 69 73 20 6d |ntWindow|IDs is m|
|00001f70| 6f 72 65 20 62 75 6c 6c | 65 74 70 72 6f 6f 66 2e |ore bull|etproof.|
|00001f80| 15 53 20 6d 47 65 74 50 | 61 72 65 6e 74 57 69 6e |.S mGetP|arentWin|
|00001f90| 64 6f 77 49 44 73 4b 2d | 2d 20 52 65 74 75 72 6e |dowIDsK-|- Return|
|00001fa0| 73 20 61 20 73 74 72 69 | 6e 67 20 6f 66 20 74 68 |s a stri|ng of th|
|00001fb0| 65 20 77 69 6e 64 6f 77 | 49 44 73 20 6f 66 20 61 |e window|IDs of a|
|00001fc0| 6c 6c 20 74 6f 70 2d 6c | 65 76 65 6c 20 77 69 6e |ll top-l|evel win|
|00001fd0| 64 6f 77 73 2c 20 6f 6e | 20 6f 6e 65 20 6c 69 6e |dows, on| one lin|
|00001fe0| 65 2c 3f 2d 2d 20 73 65 | 70 61 72 61 74 65 64 20 |e,?-- se|parated |
|00001ff0| 62 79 20 73 70 61 63 65 | 73 2e 20 55 73 65 20 27 |by space|s. Use '|
|00002000| 77 6f 72 64 27 20 74 6f | 20 77 61 6c 6b 20 74 68 |word' to| walk th|
|00002010| 72 6f 75 67 68 20 74 68 | 65 20 72 65 73 75 6c 74 |rough th|e result|
|00002020| 73 2e 20 53 49 20 6d 47 | 65 74 43 68 69 6c 64 57 |s. SI mG|etChildW|
|00002030| 69 6e 64 6f 77 4c 69 73 | 74 2c 20 77 69 6e 64 6f |indowLis|t, windo|
|00002040| 77 49 44 48 2d 2d 20 52 | 65 74 75 72 6e 73 20 61 |wIDH-- R|eturns a|
|00002050| 20 73 74 72 69 6e 67 20 | 6f 66 20 61 6c 6c 20 63 | string |of all c|
|00002060| 68 69 6c 64 20 77 69 6e | 64 6f 77 73 20 6f 77 6e |hild win|dows own|
|00002070| 65 64 20 62 79 20 74 68 | 65 20 77 69 6e 64 6f 77 |ed by th|e window|
|00002080| 2c 20 6f 6e 65 20 77 69 | 6e 64 6f 77 4c 2d 2d 20 |, one wi|ndowL-- |
|00002090| 70 65 72 20 6c 69 6e 65 | 2c 20 77 69 74 68 20 74 |per line|, with t|
|000020a0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 69 6e 66 |he follo|wing inf|
|000020b0| 6f 72 6d 61 74 69 6f 6e | 20 73 65 70 61 72 74 65 |ormation| separte|
|000020c0| 64 20 62 79 20 63 6f 6d | 6d 61 73 20 6f 6e 20 65 |d by com|mas on e|
|000020d0| 61 63 68 20 6c 69 6e 65 | 3a 42 2d 2d 20 20 20 77 |ach line|:B-- w|
|000020e0| 69 6e 64 6f 77 4e 61 6d | 65 2c 20 77 69 6e 64 6f |indowNam|e, windo|
|000020f0| 77 49 44 2c 20 70 61 72 | 65 6e 74 57 69 6e 64 6f |wID, par|entWindo|
|00002100| 77 49 44 2c 20 68 61 73 | 43 68 69 6c 64 72 65 6e |wID, has|Children|
|00002110| 2c 20 77 69 6e 64 6f 77 | 54 79 70 65 46 2d 2d 20 |, window|TypeF-- |
|00002120| 53 69 6e 63 65 20 77 69 | 6e 64 6f 77 4e 61 6d 65 |Since wi|ndowName|
|00002130| 20 6d 69 67 68 74 20 63 | 6f 6e 74 61 69 6e 20 63 | might c|ontain c|
|00002140| 6f 6d 6d 61 73 2c 20 6d | 47 65 74 43 68 69 6c 64 |ommas, m|GetChild|
|00002150| 57 69 6e 64 6f 77 49 44 | 73 20 69 73 20 61 20 6d |WindowID|s is a m|
|00002160| 6f 72 65 30 2d 2d 20 62 | 75 6c 6c 65 74 70 72 6f |ore0-- b|ulletpro|
|00002170| 6f 66 20 77 61 79 20 6f | 66 20 6c 69 73 74 69 6e |of way o|f listin|
|00002180| 67 20 61 6c 6c 20 63 68 | 69 6c 64 20 77 69 6e 64 |g all ch|ild wind|
|00002190| 6f 77 73 2e 1f 53 49 20 | 6d 47 65 74 43 68 69 6c |ows..SI |mGetChil|
|000021a0| 64 57 69 6e 64 6f 77 49 | 44 73 2c 20 77 69 6e 64 |dWindowI|Ds, wind|
|000021b0| 6f 77 49 44 4a 2d 2d 20 | 52 65 74 75 72 6e 73 20 |owIDJ-- |Returns |
|000021c0| 61 20 73 74 72 69 6e 67 | 20 6f 66 20 61 6c 6c 20 |a string| of all |
|000021d0| 63 68 69 6c 64 20 77 69 | 6e 64 6f 77 73 20 6f 77 |child wi|ndows ow|
|000021e0| 6e 65 64 20 62 79 20 74 | 68 65 20 77 69 6e 64 6f |ned by t|he windo|
|000021f0| 77 2c 20 6f 6e 20 6f 6e | 65 20 6c 69 6e 65 2c 3e |w, on on|e line,>|
|00002200| 2d 2d 20 73 65 70 61 72 | 61 74 65 64 20 62 79 20 |-- separ|ated by |
|00002210| 73 70 61 63 65 73 2e 20 | 55 73 65 20 27 77 6f 72 |spaces. |Use 'wor|
|00002220| 64 27 20 74 6f 20 77 61 | 6c 6b 20 74 68 6f 75 67 |d' to wa|lk thoug|
|00002230| 68 20 74 68 65 20 72 65 | 73 75 6c 74 73 2e 1a 49 |h the re|sults..I|
|00002240| 49 20 6d 57 69 6e 64 6f | 77 50 61 72 65 6e 74 2c |I mWindo|wParent,|
|00002250| 20 77 69 6e 64 6f 77 49 | 44 4a 2d 2d 20 52 65 74 | windowI|DJ-- Ret|
|00002260| 75 72 6e 73 20 74 68 65 | 20 77 69 6e 64 6f 77 49 |urns the| windowI|
|00002270| 44 20 6f 66 20 74 68 65 | 20 70 61 72 65 6e 74 20 |D of the| parent |
|00002280| 6f 66 20 74 68 65 20 73 | 75 70 70 6c 69 65 64 20 |of the s|upplied |
|00002290| 77 69 6e 64 6f 77 20 28 | 30 20 69 66 20 69 74 27 |window (|0 if it'|
|000022a0| 73 20 61 2e 43 2d 2d 20 | 74 6f 70 2d 6c 65 76 65 |s a.C-- |top-leve|
|000022b0| 6c 20 77 69 6e 64 6f 77 | 2c 20 6f 72 20 2d 31 20 |l window|, or -1 |
|000022c0| 69 66 20 74 68 65 20 73 | 75 70 70 6c 69 65 64 20 |if the s|upplied |
|000022d0| 77 69 6e 64 6f 77 49 44 | 20 63 61 6e 27 74 20 62 |windowID| can't b|
|000022e0| 65 20 66 6f 75 6e 64 2e | 1d 49 49 20 6d 47 65 74 |e found.|.II mGet|
|000022f0| 57 69 6e 64 6f 77 50 61 | 72 65 6e 74 2c 20 77 69 |WindowPa|rent, wi|
|00002300| 6e 64 6f 77 49 44 46 2d | 2d 20 53 79 6e 6f 6e 79 |ndowIDF-|- Synony|
|00002310| 6d 20 66 6f 72 20 6d 57 | 69 6e 64 6f 77 50 61 72 |m for mW|indowPar|
|00002320| 65 6e 74 2c 20 66 6f 72 | 20 63 6f 6d 70 61 74 69 |ent, for| compati|
|00002330| 62 69 6c 69 74 79 20 77 | 69 74 68 20 65 61 72 6c |bility w|ith earl|
|00002340| 69 65 72 20 72 65 6c 65 | 61 73 65 73 2e 24 49 49 |ier rele|ases.$II|
|00002350| 20 6d 47 65 74 48 69 67 | 68 65 73 74 57 69 6e 64 | mGetHig|hestWind|
|00002360| 6f 77 50 61 72 65 6e 74 | 2c 20 77 69 6e 64 6f 77 |owParent|, window|
|00002370| 49 44 47 2d 2d 20 52 65 | 74 75 72 6e 73 20 74 68 |IDG-- Re|turns th|
|00002380| 65 20 77 69 6e 64 6f 77 | 49 44 20 6f 66 20 74 68 |e window|ID of th|
|00002390| 65 20 74 6f 70 20 6c 65 | 76 65 6c 20 70 61 72 65 |e top le|vel pare|
|000023a0| 6e 74 2c 20 63 6c 69 6d | 62 69 6e 67 20 74 68 65 |nt, clim|bing the|
|000023b0| 20 68 65 69 72 61 72 63 | 68 79 4f 2d 2d 20 6f 66 | heirarc|hyO-- of|
|000023c0| 20 77 69 6e 64 6f 77 20 | 6f 77 6e 65 72 73 68 69 | window |ownershi|
|000023d0| 70 20 61 73 20 66 61 72 | 20 62 61 63 6b 77 61 72 |p as far| backwar|
|000023e0| 64 73 20 61 73 20 70 6f | 73 73 69 62 6c 65 2e 20 |ds as po|ssible. |
|000023f0| 52 65 74 75 72 6e 73 20 | 2d 31 20 69 66 20 74 68 |Returns |-1 if th|
|00002400| 65 20 73 75 70 70 6c 69 | 65 64 50 2d 2d 20 77 69 |e suppli|edP-- wi|
|00002410| 6e 64 6f 77 49 44 20 63 | 61 6e 27 74 20 62 65 20 |ndowID c|an't be |
|00002420| 66 6f 75 6e 64 3b 20 72 | 65 74 75 72 6e 73 20 74 |found; r|eturns t|
|00002430| 68 65 20 73 75 70 70 6c | 69 65 64 20 77 69 6e 64 |he suppl|ied wind|
|00002440| 6f 77 49 44 20 66 6f 72 | 20 74 6f 70 2d 6c 65 76 |owID for| top-lev|
|00002450| 65 6c 20 77 69 6e 64 6f | 77 73 2e 15 49 20 6d 44 |el windo|ws..I mD|
|00002460| 69 72 65 63 74 6f 72 4d | 61 69 6e 57 69 6e 64 6f |irectorM|ainWindo|
|00002470| 77 4e 2d 2d 20 52 65 74 | 75 72 6e 73 20 74 68 65 |wN-- Ret|urns the|
|00002480| 20 6d 61 69 6e 20 77 69 | 6e 64 6f 77 49 44 20 6f | main wi|ndowID o|
|00002490| 66 20 44 69 72 65 63 74 | 6f 72 20 6f 72 20 74 68 |f Direct|or or th|
|000024a0| 65 20 70 72 6f 6a 65 63 | 74 6f 72 2e 20 4f 6e 20 |e projec|tor. On |
|000024b0| 74 68 65 20 4d 61 63 2c | 20 74 68 69 73 20 69 73 |the Mac,| this is|
|000024c0| 4b 2d 2d 20 74 68 65 20 | 73 61 6d 65 20 77 69 6e |K-- the |same win|
|000024d0| 64 6f 77 20 61 73 20 74 | 68 65 20 73 74 61 67 65 |dow as t|he stage|
|000024e0| 20 69 74 73 65 6c 66 2e | 20 53 65 65 20 6e 6f 74 | itself.| See not|
|000024f0| 65 73 20 66 6f 72 20 6d | 44 69 72 65 63 74 6f 72 |es for m|Director|
|00002500| 53 74 61 67 65 57 69 6e | 64 6f 77 2e 16 49 20 6d |StageWin|dow..I m|
|00002510| 44 69 72 65 63 74 6f 72 | 53 74 61 67 65 57 69 6e |Director|StageWin|
|00002520| 64 6f 77 4e 2d 2d 20 52 | 65 74 75 72 6e 73 20 74 |dowN-- R|eturns t|
|00002530| 68 65 20 77 69 6e 64 6f | 77 49 44 20 6f 66 20 74 |he windo|wID of t|
|00002540| 68 65 20 44 69 72 65 63 | 74 6f 72 20 6f 72 20 70 |he Direc|tor or p|
|00002550| 72 6f 6a 65 63 74 6f 72 | 20 73 74 61 67 65 2e 20 |rojector| stage. |
|00002560| 4f 6e 20 74 68 65 20 4d | 61 63 2c 74 68 69 73 20 |On the M|ac,this |
|00002570| 69 73 4d 2d 2d 20 74 68 | 65 20 73 61 6d 65 20 77 |isM-- th|e same w|
|00002580| 69 6e 64 6f 77 20 61 73 | 20 74 68 65 20 6f 6e 65 |indow as| the one|
|00002590| 20 72 65 74 75 72 6e 65 | 64 20 62 79 20 6d 44 69 | returne|d by mDi|
|000025a0| 72 65 63 74 6f 72 4d 61 | 69 6e 57 69 6e 64 6f 77 |rectorMa|inWindow|
|000025b0| 2e 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 69 73 |. Note t|hat this|
|000025c0| 4b 2d 2d 20 77 69 6e 64 | 6f 77 49 44 20 63 61 6e |K-- wind|owID can|
|000025d0| 20 63 68 61 6e 67 65 20 | 69 66 20 74 68 65 20 6d | change |if the m|
|000025e0| 6f 6e 69 74 6f 72 20 63 | 6f 6c 6f 72 20 64 65 70 |onitor c|olor dep|
|000025f0| 74 68 20 6f 72 20 73 69 | 7a 65 20 69 73 20 63 68 |th or si|ze is ch|
|00002600| 61 6e 67 65 64 20 6c 61 | 74 65 72 2e 48 2d 2d 20 |anged la|ter.H-- |
|00002610| 59 6f 75 20 63 61 6e 20 | 64 65 74 65 63 74 20 74 |You can |detect t|
|00002620| 68 69 73 20 77 69 74 68 | 20 6d 57 69 6e 64 6f 77 |his with| mWindow|
|00002630| 45 78 69 73 74 73 2c 20 | 61 6e 64 20 79 6f 75 20 |Exists, |and you |
|00002640| 63 61 6e 20 67 65 74 20 | 74 68 65 20 6e 65 77 20 |can get |the new |
|00002650| 73 74 61 67 65 4d 2d 2d | 20 77 69 6e 64 6f 77 20 |stageM--| window |
|00002660| 62 79 20 63 72 65 61 74 | 69 6e 67 20 61 20 6e 65 |by creat|ing a ne|
|00002670| 77 20 4d 61 73 74 65 72 | 41 70 70 20 69 6e 73 74 |w Master|App inst|
|00002680| 61 6e 63 65 20 61 6e 64 | 20 75 73 69 6e 67 20 6d |ance and| using m|
|00002690| 44 69 72 65 63 74 6f 72 | 53 74 61 67 65 57 69 6e |Director|StageWin|
|000026a0| 64 6f 77 4a 2d 2d 20 77 | 69 74 68 20 74 68 61 74 |dowJ-- w|ith that|
|000026b0| 20 69 6e 73 74 61 6e 63 | 65 2e 20 4e 6f 74 65 20 | instanc|e. Note |
|000026c0| 74 68 61 74 20 74 61 73 | 6b 49 44 73 2c 20 6d 6f |that tas|kIDs, mo|
|000026d0| 64 75 6c 65 49 44 73 20 | 61 6e 64 20 69 6e 73 74 |duleIDs |and inst|
|000026e0| 61 6e 63 65 49 44 73 20 | 63 61 6e 20 62 65 49 2d |anceIDs |can beI-|
|000026f0| 2d 20 64 69 66 66 65 72 | 65 6e 74 20 69 6e 20 61 |- differ|ent in a|
|00002700| 20 6e 65 77 20 4d 61 73 | 74 65 72 41 70 70 20 6f | new Mas|terApp o|
|00002710| 62 6a 65 63 74 2d 2d 20 | 74 68 65 73 65 20 49 44 |bject-- |these ID|
|00002720| 73 20 61 72 65 20 75 6e | 69 71 75 65 20 70 65 72 |s are un|ique per|
|00002730| 2d 6f 62 6a 65 63 74 2e | 18 53 49 20 6d 57 69 6e |-object.|.SI mWin|
|00002740| 64 6f 77 4e 61 6d 65 2c | 20 77 69 6e 64 6f 77 49 |dowName,| windowI|
|00002750| 44 34 2d 2d 20 52 65 74 | 75 72 6e 73 20 74 68 65 |D4-- Ret|urns the|
|00002760| 20 77 69 6e 64 6f 77 20 | 6e 61 6d 65 20 6f 66 20 | window |name of |
|00002770| 74 68 65 20 73 75 70 70 | 6c 69 65 64 20 77 69 6e |the supp|lied win|
|00002780| 64 6f 77 49 44 2e 1b 53 | 49 20 6d 47 65 74 57 69 |dowID..S|I mGetWi|
|00002790| 6e 64 6f 77 4e 61 6d 65 | 2c 20 77 69 6e 64 6f 77 |ndowName|, window|
|000027a0| 49 44 44 2d 2d 20 53 79 | 6e 6f 6e 79 6d 20 66 6f |IDD-- Sy|nonym fo|
|000027b0| 72 20 6d 57 69 6e 64 6f | 77 4e 61 6d 65 2c 20 66 |r mWindo|wName, f|
|000027c0| 6f 72 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |or compa|tibility|
|000027d0| 20 77 69 74 68 20 65 61 | 72 6c 69 65 72 20 72 65 | with ea|rlier re|
|000027e0| 6c 65 61 73 65 73 2e 25 | 49 49 53 20 6d 53 65 74 |leases.%|IIS mSet|
|000027f0| 57 69 6e 64 6f 77 4e 61 | 6d 65 2c 20 77 69 6e 64 |WindowNa|me, wind|
|00002800| 6f 77 49 44 2c 20 6e 65 | 77 54 65 78 74 4f 2d 2d |owID, ne|wTextO--|
|00002810| 20 53 65 74 73 20 74 68 | 65 20 77 69 6e 64 6f 77 | Sets th|e window|
|00002820| 27 73 20 6e 61 6d 65 2e | 20 4e 6f 74 65 3a 20 74 |'s name.| Note: t|
|00002830| 68 69 73 20 6d 61 79 20 | 68 61 76 65 20 73 69 64 |his may |have sid|
|00002840| 65 20 65 66 66 65 63 74 | 73 20 69 66 20 74 68 65 |e effect|s if the|
|00002850| 20 61 70 70 20 64 6f 65 | 73 20 6e 6f 74 54 2d 2d | app doe|s notT--|
|00002860| 20 65 78 70 65 63 74 20 | 74 68 65 20 77 69 6e 64 | expect |the wind|
|00002870| 6f 77 27 73 20 6e 61 6d | 65 20 74 6f 20 63 68 61 |ow's nam|e to cha|
|00002880| 6e 67 65 2e 20 54 65 73 | 74 69 6e 67 20 69 73 20 |nge. Tes|ting is |
|00002890| 72 65 71 75 69 72 65 64 | 21 20 52 65 74 75 72 6e |required|! Return|
|000028a0| 73 20 30 20 69 66 20 73 | 75 63 63 65 73 73 66 75 |s 0 if s|uccessfu|
|000028b0| 6c 2c 47 2d 2d 20 6f 72 | 20 6e 6f 6e 2d 7a 65 72 |l,G-- or| non-zer|
|000028c0| 6f 20 69 66 20 61 6e 20 | 65 72 72 6f 72 20 6f 63 |o if an |error oc|
|000028d0| 63 75 72 73 20 28 74 79 | 70 69 63 61 6c 6c 79 2c |curs (ty|pically,|
|000028e0| 20 61 20 62 61 64 20 77 | 69 6e 64 6f 77 49 44 20 | a bad w|indowID |
|000028f0| 73 75 70 70 6c 69 65 64 | 29 2e 1f 49 49 20 6d 57 |supplied|)..II mW|
|00002900| 69 6e 64 6f 77 48 61 73 | 43 68 69 6c 64 72 65 6e |indowHas|Children|
|00002910| 2c 20 77 69 6e 64 6f 77 | 49 44 3e 2d 2d 20 52 65 |, window|ID>-- Re|
|00002920| 74 75 72 6e 73 20 54 52 | 55 45 20 69 66 20 74 68 |turns TR|UE if th|
|00002930| 65 20 77 69 6e 64 6f 77 | 20 68 61 73 20 63 68 69 |e window| has chi|
|00002940| 6c 64 20 77 69 6e 64 6f | 77 73 2c 20 66 61 6c 73 |ld windo|ws, fals|
|00002950| 65 20 69 66 20 6e 6f 74 | 2e 18 53 49 20 6d 57 69 |e if not|..SI mWi|
|00002960| 6e 64 6f 77 54 79 70 65 | 2c 20 77 69 6e 64 6f 77 |ndowType|, window|
|00002970| 49 44 55 2d 2d 20 52 65 | 74 75 72 6e 73 20 74 68 |IDU-- Re|turns th|
|00002980| 65 20 74 79 70 65 20 6f | 66 20 77 69 6e 64 6f 77 |e type o|f window|
|00002990| 2e 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 74 68 |. On the| Mac, th|
|000029a0| 69 73 20 69 73 20 61 6c | 77 61 79 73 20 61 6e 20 |is is al|ways an |
|000029b0| 69 6e 74 65 67 65 72 2c | 20 62 75 74 20 74 68 69 |integer,| but thi|
|000029c0| 73 20 6d 65 74 68 6f 64 | 51 2d 2d 20 72 65 74 75 |s method|Q-- retu|
|000029d0| 72 6e 73 20 61 20 73 74 | 72 69 6e 67 20 6f 66 20 |rns a st|ring of |
|000029e0| 74 68 65 20 69 6e 74 65 | 67 65 72 2c 20 66 6f 72 |the inte|ger, for|
|000029f0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|00002a00| 69 74 68 20 74 68 65 20 | 57 69 6e 20 76 65 72 73 |ith the |Win vers|
|00002a10| 69 6f 6e 20 28 77 68 65 | 72 65 54 2d 2d 20 77 69 |ion (whe|reT-- wi|
|00002a20| 6e 64 6f 77 54 79 70 65 | 73 20 63 61 6e 20 62 65 |ndowType|s can be|
|00002a30| 20 73 74 72 69 6e 67 73 | 29 2e 20 52 65 74 75 72 | strings|). Retur|
|00002a40| 6e 73 20 45 4d 50 54 59 | 20 69 66 20 74 68 65 20 |ns EMPTY| if the |
|00002a50| 73 75 70 70 6c 69 65 64 | 20 77 69 6e 64 6f 77 49 |supplied| windowI|
|00002a60| 44 20 69 73 20 6e 6f 74 | 20 76 61 6c 69 64 2e 1b |D is not| valid..|
|00002a70| 53 49 20 6d 47 65 74 57 | 69 6e 64 6f 77 54 79 70 |SI mGetW|indowTyp|
|00002a80| 65 2c 20 77 69 6e 64 6f | 77 49 44 44 2d 2d 20 53 |e, windo|wIDD-- S|
|00002a90| 79 6e 6f 6e 79 6d 20 66 | 6f 72 20 6d 57 69 6e 64 |ynonym f|or mWind|
|00002aa0| 6f 77 54 79 70 65 2c 20 | 66 6f 72 20 63 6f 6d 70 |owType, |for comp|
|00002ab0| 61 74 69 62 69 6c 69 74 | 79 20 77 69 74 68 20 65 |atibilit|y with e|
|00002ac0| 61 72 6c 69 65 72 20 72 | 65 6c 65 61 73 65 73 2e |arlier r|eleases.|
|00002ad0| 1d 49 49 20 6d 57 69 6e | 64 6f 77 49 73 56 69 73 |.II mWin|dowIsVis|
|00002ae0| 69 62 6c 65 2c 20 77 69 | 6e 64 6f 77 49 44 4c 2d |ible, wi|ndowIDL-|
|00002af0| 2d 20 52 65 74 75 72 6e | 73 20 54 52 55 45 20 69 |- Return|s TRUE i|
|00002b00| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |f the wi|ndow is |
|00002b10| 64 69 73 70 6c 61 79 65 | 64 20 28 62 75 74 20 70 |displaye|d (but p|
|00002b20| 6f 73 73 69 62 6c 79 20 | 6f 62 73 63 75 72 65 64 |ossibly |obscured|
|00002b30| 29 2c 20 6f 72 20 46 41 | 4c 53 45 12 2d 2d 20 69 |), or FA|LSE.-- i|
|00002b40| 66 20 69 74 27 73 20 68 | 69 64 64 65 6e 2e 12 49 |f it's h|idden..I|
|00002b50| 20 6d 47 65 74 41 63 74 | 69 76 65 57 69 6e 64 6f | mGetAct|iveWindo|
|00002b60| 77 54 2d 2d 20 52 65 74 | 75 72 6e 73 20 77 69 6e |wT-- Ret|urns win|
|00002b70| 64 6f 77 49 44 20 6f 66 | 20 74 68 65 20 66 72 6f |dowID of| the fro|
|00002b80| 6e 74 6d 6f 73 74 20 77 | 69 6e 64 6f 77 20 28 30 |ntmost w|indow (0|
|00002b90| 20 69 66 20 6e 6f 20 77 | 69 6e 64 6f 77 73 20 61 | if no w|indows a|
|00002ba0| 72 65 20 76 69 73 69 62 | 6c 65 20 6f 72 20 61 63 |re visib|le or ac|
|00002bb0| 74 69 76 65 29 2e 49 2d | 2d 20 4e 6f 74 65 3a 20 |tive).I-|- Note: |
|00002bc0| 74 68 69 73 20 6f 6e 6c | 79 20 61 70 70 6c 69 65 |this onl|y applie|
|00002bd0| 73 20 74 6f 20 77 69 6e | 64 6f 77 73 20 6f 77 6e |s to win|dows own|
|00002be0| 65 64 20 62 79 20 74 68 | 65 20 44 69 72 65 63 74 |ed by th|e Direct|
|00002bf0| 6f 72 20 74 61 73 6b 2e | 20 55 73 75 61 6c 6c 79 |or task.| Usually|
|00002c00| 50 2d 2d 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |P-- retu|rns the |
|00002c10| 73 61 6d 65 20 77 69 6e | 64 6f 77 20 61 73 20 6d |same win|dow as m|
|00002c20| 44 69 72 65 63 74 6f 72 | 53 74 61 67 65 57 69 6e |Director|StageWin|
|00002c30| 64 6f 77 20 69 6e 20 70 | 72 6f 6a 65 63 74 6f 72 |dow in p|rojector|
|00002c40| 73 2c 20 62 75 74 20 63 | 6f 75 6c 64 20 61 6c 73 |s, but c|ould als|
|00002c50| 6f 4b 2d 2d 20 72 65 74 | 75 72 6e 20 61 75 74 68 |oK-- ret|urn auth|
|00002c60| 6f 72 69 6e 67 2d 74 69 | 6d 65 20 77 69 6e 64 6f |oring-ti|me windo|
|00002c70| 77 73 2c 20 4d 49 41 57 | 73 2c 20 6f 72 20 58 74 |ws, MIAW|s, or Xt|
|00002c80| 72 61 2d 20 6f 72 20 58 | 4f 62 6a 65 63 74 2d 6f |ra- or X|Object-o|
|00002c90| 77 6e 65 64 20 77 69 6e | 64 6f 77 73 2e 1d 49 49 |wned win|dows..II|
|00002ca0| 20 6d 53 65 74 41 63 74 | 69 76 65 57 69 6e 64 6f | mSetAct|iveWindo|
|00002cb0| 77 2c 20 77 69 6e 64 6f | 77 49 44 51 2d 2d 20 53 |w, windo|wIDQ-- S|
|00002cc0| 65 74 73 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 |ets the |window t|
|00002cd0| 6f 20 62 65 20 74 68 65 | 20 66 72 6f 6e 74 6d 6f |o be the| frontmo|
|00002ce0| 73 74 2c 20 61 63 74 69 | 76 65 20 77 69 6e 64 6f |st, acti|ve windo|
|00002cf0| 77 20 28 6d 61 6b 69 6e | 67 20 69 74 20 76 69 73 |w (makin|g it vis|
|00002d00| 69 62 6c 65 2c 20 69 66 | 20 69 74 27 73 56 2d 2d |ible, if| it'sV--|
|00002d10| 20 68 69 64 64 65 6e 29 | 2e 20 52 65 74 75 72 6e | hidden)|. Return|
|00002d20| 73 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 6c 79 |s the pr|eviously|
|00002d30| 20 61 63 74 69 76 65 20 | 77 69 6e 64 6f 77 2e 20 | active |window. |
|00002d40| 4e 6f 74 65 20 31 3a 20 | 44 69 72 65 63 74 6f 72 |Note 1: |Director|
|00002d50| 20 6e 6f 72 6d 61 6c 6c | 79 20 65 78 70 65 63 74 | normall|y expect|
|00002d60| 73 20 74 6f 49 2d 2d 20 | 61 63 74 69 76 61 74 65 |s toI-- |activate|
|00002d70| 20 69 74 73 20 6f 77 6e | 20 77 69 6e 64 6f 77 73 | its own| windows|
|00002d80| 2c 20 61 6e 64 20 69 74 | 73 20 6e 6f 74 69 6f 6e |, and it|s notion|
|00002d90| 20 6f 66 20 77 68 69 63 | 68 20 77 69 6e 64 6f 77 | of whic|h window|
|00002da0| 20 69 73 20 61 63 74 69 | 76 65 20 6f 72 20 4e 2d | is acti|ve or N-|
|00002db0| 2d 20 66 72 6f 6e 74 6d | 6f 73 74 20 6d 61 79 20 |- frontm|ost may |
|00002dc0| 67 65 74 20 27 6f 75 74 | 20 6f 66 20 73 79 6e 63 |get 'out| of sync|
|00002dd0| 27 20 77 68 65 6e 20 75 | 73 69 6e 67 20 74 68 69 |' when u|sing thi|
|00002de0| 73 20 63 6f 6d 6d 61 6e | 64 2e 20 53 65 6e 64 69 |s comman|d. Sendi|
|00002df0| 6e 67 20 66 61 6b 65 20 | 6d 6f 75 73 65 51 2d 2d |ng fake |mouseQ--|
|00002e00| 20 63 6c 69 63 6b 73 20 | 69 6e 73 74 65 61 64 20 | clicks |instead |
|00002e10| 6d 61 79 20 61 76 6f 69 | 64 20 74 68 69 73 2e 20 |may avoi|d this. |
|00002e20| 4e 6f 74 65 20 32 3a 20 | 74 68 69 73 20 6d 65 74 |Note 2: |this met|
|00002e30| 68 6f 64 20 6f 6e 6c 79 | 20 61 70 70 6c 69 65 73 |hod only| applies|
|00002e40| 20 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 57 | to the |currentW|
|00002e50| 2d 2d 20 44 69 72 65 63 | 74 6f 72 20 74 61 73 6b |-- Direc|tor task|
|00002e60| 2d 2d 20 75 73 65 20 6d | 57 69 6e 64 6f 77 54 6f |-- use m|WindowTo|
|00002e70| 46 72 6f 6e 74 20 77 69 | 74 68 20 6f 74 68 65 72 |Front wi|th other|
|00002e80| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 2e 20 4e | applica|tions. N|
|00002e90| 6f 74 65 20 33 3a 20 74 | 68 69 73 20 6d 65 74 68 |ote 3: t|his meth|
|00002ea0| 6f 64 20 77 69 6c 6c 4b | 2d 2d 20 61 75 74 6f 6d |od willK|-- autom|
|00002eb0| 61 74 69 63 61 6c 6c 79 | 20 62 72 69 6e 67 20 74 |atically| bring t|
|00002ec0| 68 65 20 44 69 72 65 63 | 74 6f 72 20 74 61 73 6b |he Direc|tor task|
|00002ed0| 20 74 6f 20 74 68 65 20 | 66 72 6f 6e 74 2c 20 69 | to the |front, i|
|00002ee0| 66 20 69 74 27 73 20 6e | 6f 74 20 61 6c 72 65 61 |f it's n|ot alrea|
|00002ef0| 64 79 2e 19 49 20 6d 47 | 65 74 4b 65 79 62 6f 61 |dy..I mG|etKeyboa|
|00002f00| 72 64 49 6e 70 75 74 57 | 69 6e 64 6f 77 51 2d 2d |rdInputW|indowQ--|
|00002f10| 20 4f 6e 20 57 69 6e 64 | 6f 77 73 2c 20 74 68 69 | On Wind|ows, thi|
|00002f20| 73 20 69 73 20 61 20 64 | 69 73 74 69 6e 63 74 20 |s is a d|istinct |
|00002f30| 73 79 73 74 65 6d 20 63 | 61 6c 6c 2e 20 4f 6e 20 |system c|all. On |
|00002f40| 74 68 65 20 4d 61 63 2c | 20 74 68 65 72 65 20 69 |the Mac,| there i|
|00002f50| 73 20 6e 6f 20 73 75 63 | 68 20 63 61 6c 6c 2c 44 |s no suc|h call,D|
|00002f60| 2d 2d 20 73 6f 20 74 68 | 69 73 20 6d 65 74 68 6f |-- so th|is metho|
|00002f70| 64 20 69 73 20 6a 75 73 | 74 20 61 20 73 79 6e 6f |d is jus|t a syno|
|00002f80| 6e 79 6d 20 66 6f 72 20 | 6d 47 65 74 41 63 74 69 |nym for |mGetActi|
|00002f90| 76 65 57 69 6e 64 6f 77 | 20 6f 6e 20 74 68 65 20 |veWindow| on the |
|00002fa0| 4d 61 63 2e 24 49 49 20 | 6d 53 65 74 4b 65 79 62 |Mac.$II |mSetKeyb|
|00002fb0| 6f 61 72 64 49 6e 70 75 | 74 57 69 6e 64 6f 77 2c |oardInpu|tWindow,|
|00002fc0| 20 77 69 6e 64 6f 77 49 | 44 54 2d 2d 20 4f 6e 20 | windowI|DT-- On |
|00002fd0| 57 69 6e 64 6f 77 73 2c | 20 74 68 69 73 20 69 73 |Windows,| this is|
|00002fe0| 20 61 20 64 69 73 74 69 | 6e 63 74 20 73 79 73 74 | a disti|nct syst|
|00002ff0| 65 6d 20 63 61 6c 6c 2c | 20 77 69 74 68 20 6e 6f |em call,| with no|
|00003000| 20 4d 61 63 20 65 71 75 | 69 76 61 6c 65 6e 74 3b | Mac equ|ivalent;|
|00003010| 20 74 68 65 72 65 66 6f | 72 65 2c 20 6f 6e 40 2d | therefo|re, on@-|
|00003020| 2d 20 74 68 65 20 4d 61 | 63 2c 20 74 68 69 73 20 |- the Ma|c, this |
|00003030| 6d 65 74 68 6f 64 20 69 | 73 20 6a 75 73 74 20 61 |method i|s just a|
|00003040| 20 73 79 6e 6f 6e 79 6d | 6e 20 66 6f 72 20 6d 53 | synonym|n for mS|
|00003050| 65 74 41 63 74 69 76 65 | 57 69 6e 64 6f 77 2e 1f |etActive|Window..|
|00003060| 49 49 20 6d 43 61 70 74 | 75 72 65 4d 6f 75 73 65 |II mCapt|ureMouse|
|00003070| 49 6e 70 75 74 2c 20 77 | 69 6e 64 6f 77 49 44 51 |Input, w|indowIDQ|
|00003080| 2d 2d 20 4f 6e 20 57 69 | 6e 64 6f 77 73 2c 20 74 |-- On Wi|ndows, t|
|00003090| 68 69 73 20 69 73 20 61 | 20 64 69 73 74 69 6e 63 |his is a| distinc|
|000030a0| 74 20 73 79 73 74 65 6d | 20 63 61 6c 6c 2e 20 4f |t system| call. O|
|000030b0| 6e 20 74 68 65 20 4d 61 | 63 2c 20 74 68 65 72 65 |n the Ma|c, there|
|000030c0| 20 69 73 20 6e 6f 20 73 | 75 63 68 20 63 61 6c 6c | is no s|uch call|
|000030d0| 2c 44 2d 2d 20 73 6f 20 | 74 68 69 73 20 6d 65 74 |,D-- so |this met|
|000030e0| 68 6f 64 20 69 73 20 6a | 75 73 74 20 61 20 73 79 |hod is j|ust a sy|
|000030f0| 6e 6f 6e 79 6d 20 66 6f | 72 20 6d 53 65 74 41 63 |nonym fo|r mSetAc|
|00003100| 74 69 76 65 57 69 6e 64 | 6f 77 20 6f 6e 20 74 68 |tiveWind|ow on th|
|00003110| 65 20 4d 61 63 2e 14 58 | 20 6d 52 65 6c 65 61 73 |e Mac..X| mReleas|
|00003120| 65 4d 6f 75 73 65 49 6e | 70 75 74 54 2d 2d 20 4f |eMouseIn|putT-- O|
|00003130| 6e 20 74 68 65 20 4d 61 | 63 2c 20 74 68 69 73 20 |n the Ma|c, this |
|00003140| 6d 65 74 68 6f 64 20 64 | 6f 65 73 20 6e 6f 74 68 |method d|oes noth|
|00003150| 69 6e 67 2c 20 62 65 63 | 61 75 73 65 20 74 68 65 |ing, bec|ause the|
|00003160| 72 65 27 73 20 6e 6f 20 | 4d 61 63 20 65 71 75 69 |re's no |Mac equi|
|00003170| 76 61 6c 65 6e 74 20 66 | 6f 72 20 74 68 69 73 2e |valent f|or this.|
|00003180| 17 2d 2d 20 57 69 6e 64 | 6f 77 73 20 73 79 73 74 |.-- Wind|ows syst|
|00003190| 65 6d 20 63 61 6c 6c 2e | 25 49 49 20 6d 47 65 74 |em call.|%II mGet|
|000031a0| 50 61 72 65 6e 74 57 69 | 6e 64 6f 77 54 6f 70 43 |ParentWi|ndowTopC|
|000031b0| 68 69 6c 64 2c 20 77 69 | 6e 64 6f 77 49 44 51 2d |hild, wi|ndowIDQ-|
|000031c0| 2d 20 57 69 6e 64 6f 77 | 73 20 61 72 63 68 69 74 |- Window|s archit|
|000031d0| 65 63 74 75 72 65 20 64 | 69 66 66 65 72 73 20 66 |ecture d|iffers f|
|000031e0| 72 6f 6d 20 4d 61 63 20 | 61 72 63 68 69 74 65 63 |rom Mac |architec|
|000031f0| 74 75 72 65 2e 20 4f 6e | 20 57 69 6e 64 6f 77 73 |ture. On| Windows|
|00003200| 2c 20 65 61 63 68 20 61 | 70 70 20 68 61 73 20 61 |, each a|pp has a|
|00003210| 55 2d 2d 20 70 61 72 65 | 6e 74 20 77 69 6e 64 6f |U-- pare|nt windo|
|00003220| 77 20 77 68 69 63 68 20 | 6d 61 79 20 63 6f 6e 74 |w which |may cont|
|00003230| 61 69 6e 20 6f 74 68 65 | 72 20 77 69 6e 64 6f 77 |ain othe|r window|
|00003240| 73 20 28 65 6e 74 69 72 | 65 6c 79 20 77 69 74 68 |s (entir|ely with|
|00003250| 69 6e 20 74 68 65 20 70 | 61 72 65 6e 74 29 2e 20 |in the p|arent). |
|00003260| 4f 6e 20 74 68 65 53 2d | 2d 20 4d 61 63 2c 20 70 |On theS-|- Mac, p|
|00003270| 61 72 65 6e 74 20 77 69 | 6e 64 6f 77 73 20 6d 61 |arent wi|ndows ma|
|00003280| 79 20 61 70 70 65 61 72 | 20 61 6e 79 77 68 65 72 |y appear| anywher|
|00003290| 65 20 6f 6e 20 74 68 65 | 20 64 65 73 6b 74 6f 70 |e on the| desktop|
|000032a0| 2c 20 61 6e 64 20 64 6f | 6e 27 74 20 6f 77 6e 20 |, and do|n't own |
|000032b0| 73 75 62 77 69 6e 64 6f | 77 73 53 2d 2d 20 70 65 |subwindo|wsS-- pe|
|000032c0| 72 20 73 65 2d 2d 20 70 | 65 72 68 61 70 73 20 73 |r se-- p|erhaps s|
|000032d0| 6f 6d 65 20 63 6f 6e 74 | 72 6f 6c 73 20 77 69 74 |ome cont|rols wit|
|000032e0| 68 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 2c 20 |hin the |window, |
|000032f0| 62 75 74 20 74 68 65 73 | 65 20 63 6f 6e 74 72 6f |but thes|e contro|
|00003300| 6c 73 20 64 6f 20 6e 6f | 74 20 68 61 76 65 50 2d |ls do no|t haveP-|
|00003310| 2d 20 61 6e 79 20 66 72 | 6f 6e 74 2d 74 6f 2d 62 |- any fr|ont-to-b|
|00003320| 61 63 6b 20 6c 61 79 65 | 72 69 6e 67 2e 20 4f 6e |ack laye|ring. On|
|00003330| 20 74 68 65 20 4d 61 63 | 2c 20 74 68 65 72 65 66 | the Mac|, theref|
|00003340| 6f 72 65 2c 20 74 68 69 | 73 20 6d 65 74 68 6f 64 |ore, thi|s method|
|00003350| 20 73 69 6d 70 6c 79 20 | 72 65 74 75 72 6e 73 47 | simply |returnsG|
|00003360| 2d 2d 20 74 68 65 20 66 | 69 72 73 74 20 63 6f 6e |-- the f|irst con|
|00003370| 74 72 6f 6c 20 6f 77 6e | 65 64 20 62 79 20 61 20 |trol own|ed by a |
|00003380| 77 69 6e 64 6f 77 20 28 | 6f 72 20 30 20 69 66 20 |window (|or 0 if |
|00003390| 74 68 65 72 65 20 61 72 | 65 20 6e 6f 20 63 6f 6e |there ar|e no con|
|000033a0| 74 72 6f 6c 73 29 2e 13 | 49 20 6d 47 65 74 44 65 |trols)..|I mGetDe|
|000033b0| 73 6b 74 6f 70 57 69 6e | 64 6f 77 4f 2d 2d 20 52 |sktopWin|dowO-- R|
|000033c0| 65 74 75 72 6e 73 20 74 | 68 65 20 77 69 6e 64 6f |eturns t|he windo|
|000033d0| 77 49 44 20 6f 66 20 74 | 68 65 20 4d 61 63 20 64 |wID of t|he Mac d|
|000033e0| 65 73 6b 74 6f 70 20 69 | 74 73 65 6c 66 20 28 77 |esktop i|tself (w|
|000033f0| 68 69 63 68 20 69 6e 63 | 6c 75 64 65 73 20 61 6c |hich inc|ludes al|
|00003400| 6c 20 73 63 72 65 65 6e | 73 29 2e 4e 2d 2d 20 44 |l screen|s).N-- D|
|00003410| 69 72 65 63 74 6f 72 20 | 35 20 75 73 65 72 73 20 |irector |5 users |
|00003420| 6d 61 79 20 70 72 65 66 | 65 72 20 74 6f 20 75 73 |may pref|er to us|
|00003430| 65 20 74 68 65 20 62 75 | 69 6c 74 2d 69 6e 20 4c |e the bu|ilt-in L|
|00003440| 69 6e 67 6f 20 27 64 65 | 73 6b 74 6f 70 52 65 63 |ingo 'de|sktopRec|
|00003450| 74 4c 69 73 74 27 20 66 | 6f 72 53 2d 2d 20 74 68 |tList' f|orS-- th|
|00003460| 69 73 2e 20 54 68 69 73 | 20 77 69 6e 64 6f 77 27 |is. This| window'|
|00003470| 73 20 64 69 6d 65 6e 73 | 69 6f 6e 73 20 61 72 65 |s dimens|ions are|
|00003480| 20 66 61 62 72 69 63 61 | 74 65 64 20 62 79 20 4d | fabrica|ted by M|
|00003490| 61 63 20 4d 61 73 74 65 | 72 41 70 70 2c 20 69 6e |ac Maste|rApp, in|
|000034a0| 20 6f 72 64 65 72 20 74 | 6f 20 6b 65 65 70 56 2d | order t|o keepV-|
|000034b0| 2d 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |- compat|ibility |
|000034c0| 77 69 74 68 20 74 68 65 | 20 57 69 6e 64 6f 77 73 |with the| Windows|
|000034d0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 4d 61 73 74 | version| of Mast|
|000034e0| 65 72 41 70 70 2e 20 49 | 6e 20 74 68 65 20 74 72 |erApp. I|n the tr|
|000034f0| 75 65 20 4d 61 63 4f 53 | 20 77 69 6e 64 6f 77 20 |ue MacOS| window |
|00003500| 6c 69 73 74 2c 2c 2d 2d | 20 74 68 69 73 20 77 69 |list,,--| this wi|
|00003510| 6e 64 6f 77 20 69 73 20 | 7a 65 72 6f 20 70 69 78 |ndow is |zero pix|
|00003520| 65 6c 73 20 74 61 6c 6c | 20 61 6e 64 20 77 69 64 |els tall| and wid|
|00003530| 65 2e 22 53 49 20 6d 47 | 65 74 57 69 6e 64 6f 77 |e."SI mG|etWindow|
|00003540| 4f 75 74 73 69 64 65 52 | 65 63 74 2c 20 77 69 6e |OutsideR|ect, win|
|00003550| 64 6f 77 49 44 4c 2d 2d | 20 52 65 74 75 72 6e 73 |dowIDL--| Returns|
|00003560| 20 61 20 77 69 6e 64 6f | 77 27 73 20 64 69 6d 65 | a windo|w's dime|
|00003570| 6e 73 69 6f 6e 73 2c 20 | 72 65 6c 61 74 69 76 65 |nsions, |relative|
|00003580| 20 74 6f 20 74 68 65 20 | 6d 61 69 6e 20 73 63 72 | to the |main scr|
|00003590| 65 65 6e 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 61 |een, inc|luding a|
|000035a0| 6e 79 4d 2d 2d 20 74 69 | 74 6c 65 20 62 61 72 20 |nyM-- ti|tle bar |
|000035b0| 61 72 65 61 2c 20 61 73 | 20 61 20 66 6f 75 72 2d |area, as| a four-|
|000035c0| 77 6f 72 64 20 73 74 72 | 69 6e 67 20 6f 66 20 69 |word str|ing of i|
|000035d0| 6e 74 65 67 65 72 73 20 | 69 6e 20 74 68 65 20 6f |ntegers |in the o|
|000035e0| 72 64 65 72 3a 20 6c 65 | 66 74 2c 20 74 6f 70 2c |rder: le|ft, top,|
|000035f0| 4c 2d 2d 20 72 69 67 68 | 74 2c 20 62 6f 74 74 6f |L-- righ|t, botto|
|00003600| 6d 2e 20 52 65 74 75 72 | 6e 73 20 27 45 72 72 6f |m. Retur|ns 'Erro|
|00003610| 72 3a 27 20 61 73 20 77 | 6f 72 64 20 31 20 69 66 |r:' as w|ord 1 if|
|00003620| 20 74 68 65 72 65 27 73 | 20 61 20 70 72 6f 62 6c | there's| a probl|
|00003630| 65 6d 2e 20 4e 6f 74 65 | 20 74 68 61 74 4b 2d 2d |em. Note| thatK--|
|00003640| 20 73 6f 6d 65 20 61 70 | 70 73 20 28 44 69 72 65 | some ap|ps (Dire|
|00003650| 63 74 6f 72 20 69 74 73 | 65 6c 66 20 69 6e 63 6c |ctor its|elf incl|
|00003660| 75 64 65 64 29 2c 20 65 | 78 70 65 63 74 69 6e 67 |uded), e|xpecting|
|00003670| 20 74 6f 20 6d 61 69 6e | 74 61 69 6e 20 63 68 69 | to main|tain chi|
|00003680| 6c 64 20 77 69 6e 64 6f | 77 4b 2d 2d 20 64 69 6d |ld windo|wK-- dim|
|00003690| 65 6e 73 69 6f 6e 73 20 | 70 72 69 76 61 74 65 6c |ensions |privatel|
|000036a0| 79 2c 20 6d 61 79 20 72 | 65 74 75 72 6e 20 76 61 |y, may r|eturn va|
|000036b0| 6c 75 65 73 20 74 68 61 | 74 20 61 72 65 20 6f 66 |lues tha|t are of|
|000036c0| 66 73 65 74 20 66 72 6f | 6d 20 74 72 75 65 20 73 |fset fro|m true s|
|000036d0| 63 72 65 65 6e 50 2d 2d | 20 63 6f 6f 72 64 69 6e |creenP--| coordin|
|000036e0| 61 74 65 73 3b 20 74 65 | 73 74 69 6e 67 20 69 73 |ates; te|sting is|
|000036f0| 20 72 65 71 75 69 72 65 | 64 20 66 6f 72 20 65 61 | require|d for ea|
|00003700| 63 68 20 61 70 70 20 77 | 69 74 68 20 77 68 69 63 |ch app w|ith whic|
|00003710| 68 20 79 6f 75 20 75 73 | 65 20 74 68 69 73 20 6d |h you us|e this m|
|00003720| 65 74 68 6f 64 2e 21 53 | 49 20 6d 47 65 74 57 69 |ethod.!S|I mGetWi|
|00003730| 6e 64 6f 77 49 6e 73 69 | 64 65 52 65 63 74 2c 20 |ndowInsi|deRect, |
|00003740| 77 69 6e 64 6f 77 49 44 | 4c 2d 2d 20 52 65 74 75 |windowID|L-- Retu|
|00003750| 72 6e 73 20 61 20 77 69 | 6e 64 6f 77 27 73 20 64 |rns a wi|ndow's d|
|00003760| 69 6d 65 6e 73 69 6f 6e | 73 2c 20 72 65 6c 61 74 |imension|s, relat|
|00003770| 69 76 65 20 74 6f 20 74 | 68 65 20 6d 61 69 6e 20 |ive to t|he main |
|00003780| 73 63 72 65 65 6e 2c 20 | 6e 6f 74 20 69 6e 63 6c |screen, |not incl|
|00003790| 75 64 69 6e 67 4c 2d 2d | 20 61 6e 79 20 74 69 74 |udingL--| any tit|
|000037a0| 6c 65 20 62 61 72 20 61 | 72 65 61 2c 20 69 6e 20 |le bar a|rea, in |
|000037b0| 74 68 65 20 73 61 6d 65 | 20 66 6f 72 6d 61 74 20 |the same| format |
|000037c0| 75 73 65 64 20 62 79 20 | 6d 47 65 74 57 69 6e 64 |used by |mGetWind|
|000037d0| 6f 77 4f 75 74 73 69 64 | 65 52 65 63 74 2e 20 54 |owOutsid|eRect. T|
|000037e0| 68 65 3a 2d 2d 20 73 61 | 6d 65 20 70 72 65 63 61 |he:-- sa|me preca|
|000037f0| 75 74 69 6f 6e 73 20 64 | 6f 63 75 6d 65 6e 74 65 |utions d|ocumente|
|00003800| 64 20 74 68 65 72 65 20 | 61 70 70 6c 79 20 74 6f |d there |apply to|
|00003810| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 2e 40 49 49 | this me|thod.@II|
|00003820| 49 49 49 49 20 6d 53 65 | 74 57 69 6e 64 6f 77 4f |IIII mSe|tWindowO|
|00003830| 75 74 73 69 64 65 52 65 | 63 74 2c 20 77 69 6e 64 |utsideRe|ct, wind|
|00003840| 6f 77 49 44 2c 20 6c 65 | 66 74 2c 20 74 6f 70 2c |owID, le|ft, top,|
|00003850| 20 72 69 67 68 74 2c 20 | 62 6f 74 74 6f 6d 45 2d | right, |bottomE-|
|00003860| 2d 20 53 65 74 73 20 6f | 75 74 73 69 64 65 20 77 |- Sets o|utside w|
|00003870| 69 6e 64 6f 77 20 72 65 | 63 74 61 6e 67 6c 65 20 |indow re|ctangle |
|00003880| 64 69 6d 65 6e 73 69 6f | 6e 73 2e 20 59 6f 75 20 |dimensio|ns. You |
|00003890| 63 61 6e 20 6d 6f 76 65 | 20 6f 72 20 72 65 73 69 |can move| or resi|
|000038a0| 7a 65 20 61 47 2d 2d 20 | 77 69 6e 64 6f 77 20 62 |ze aG-- |window b|
|000038b0| 61 73 65 64 20 6f 6e 20 | 74 68 65 20 64 69 6d 65 |ased on |the dime|
|000038c0| 6e 73 69 6f 6e 73 20 79 | 6f 75 20 70 72 6f 76 69 |nsions y|ou provi|
|000038d0| 64 65 2e 20 52 65 74 75 | 72 6e 73 20 30 20 69 66 |de. Retu|rns 0 if|
|000038e0| 20 73 75 63 63 65 73 73 | 66 75 6c 2c 49 2d 2d 20 | success|ful,I-- |
|000038f0| 31 20 69 66 20 74 68 65 | 20 73 75 70 70 6c 69 65 |1 if the| supplie|
|00003900| 64 20 64 69 6d 65 6e 73 | 69 6f 6e 73 20 61 72 65 |d dimens|ions are|
|00003910| 20 69 6e 76 61 6c 69 64 | 2c 20 32 20 69 66 20 74 | invalid|, 2 if t|
|00003920| 68 65 20 77 69 6e 64 6f | 77 27 73 20 6e 6f 74 20 |he windo|w's not |
|00003930| 76 61 6c 69 64 2e 4c 2d | 2d 20 4e 6f 74 65 20 74 |valid.L-|- Note t|
|00003940| 68 61 74 20 74 68 69 73 | 20 6d 65 74 68 6f 64 20 |hat this| method |
|00003950| 62 65 68 61 76 65 73 20 | 64 69 66 66 65 72 65 6e |behaves |differen|
|00003960| 74 6c 79 20 6f 6e 20 4d | 61 63 20 61 6e 64 20 57 |tly on M|ac and W|
|00003970| 69 6e 64 6f 77 73 2e 20 | 53 63 72 6f 6c 6c 20 62 |indows. |Scroll b|
|00003980| 61 72 73 49 2d 2d 20 61 | 6e 64 20 6f 74 68 65 72 |arsI-- a|nd other|
|00003990| 20 77 69 6e 64 6f 77 20 | 63 6f 6e 74 65 6e 74 20 | window |content |
|000039a0| 63 61 6e 20 62 65 63 6f | 6d 65 20 68 69 64 64 65 |can beco|me hidde|
|000039b0| 6e 20 61 73 20 61 20 72 | 65 73 75 6c 74 20 6f 6e |n as a r|esult on|
|000039c0| 20 74 68 65 20 4d 61 63 | 2c 20 62 75 74 48 2d 2d | the Mac|, butH--|
|000039d0| 20 6f 6e 20 57 69 6e 64 | 6f 77 73 2c 20 74 68 65 | on Wind|ows, the|
|000039e0| 20 65 6e 74 69 72 65 20 | 77 69 6e 64 6f 77 20 61 | entire |window a|
|000039f0| 6e 64 20 69 74 73 20 63 | 6f 6e 74 72 6f 6c 73 20 |nd its c|ontrols |
|00003a00| 61 72 65 20 72 65 64 72 | 61 77 6e 20 74 6f 20 74 |are redr|awn to t|
|00003a10| 68 65 20 6e 65 77 4c 2d | 2d 20 73 69 7a 65 2e 20 |he newL-|- size. |
|00003a20| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 69 74 27 73 |On the M|ac, it's|
|00003a30| 20 62 65 73 74 20 74 6f | 20 63 68 61 6e 67 65 20 | best to| change |
|00003a40| 6f 6e 6c 79 20 74 68 65 | 20 70 6f 73 69 74 69 6f |only the| positio|
|00003a50| 6e 20 6f 66 20 74 68 65 | 20 72 65 63 74 61 6e 67 |n of the| rectang|
|00003a60| 6c 65 2c 4d 2d 2d 20 6e | 6f 74 20 69 74 73 20 68 |le,M-- n|ot its h|
|00003a70| 65 69 67 68 74 20 61 6e | 64 20 77 69 64 74 68 2e |eight an|d width.|
|00003a80| 20 59 6f 75 20 6d 61 79 | 20 62 65 20 61 62 6c 65 | You may| be able|
|00003a90| 20 74 6f 20 75 73 65 20 | 74 68 65 20 6d 46 61 6b | to use |the mFak|
|00003aa0| 65 4d 6f 75 73 65 44 72 | 61 67 20 6d 65 74 68 6f |eMouseDr|ag metho|
|00003ab0| 64 4a 2d 2d 20 62 65 6c | 6f 77 20 74 6f 20 73 69 |dJ-- bel|ow to si|
|00003ac0| 6d 75 6c 61 74 65 20 61 | 20 64 72 61 67 20 6f 6e |mulate a| drag on|
|00003ad0| 20 74 68 65 20 72 65 73 | 69 7a 69 6e 67 20 62 6f | the res|izing bo|
|00003ae0| 78 20 6f 6e 20 74 68 65 | 20 4d 61 63 2c 20 74 6f |x on the| Mac, to|
|00003af0| 20 61 63 68 65 69 76 65 | 20 74 68 65 2e 2d 2d 20 | acheive| the.-- |
|00003b00| 65 66 66 65 63 74 20 6f | 66 20 6d 53 65 74 57 69 |effect o|f mSetWi|
|00003b10| 6e 64 6f 77 4f 75 74 73 | 69 64 65 52 65 63 74 20 |ndowOuts|ideRect |
|00003b20| 6f 6e 20 57 69 6e 64 6f | 77 73 2e 39 49 49 49 49 |on Windo|ws.9IIII|
|00003b30| 49 49 20 6d 53 65 74 57 | 69 6e 64 6f 77 52 65 63 |II mSetW|indowRec|
|00003b40| 74 2c 20 77 69 6e 64 6f | 77 49 44 2c 20 6c 65 66 |t, windo|wID, lef|
|00003b50| 74 2c 20 74 6f 70 2c 20 | 72 69 67 68 74 2c 20 62 |t, top, |right, b|
|00003b60| 6f 74 74 6f 6d 4d 2d 2d | 20 53 79 6e 6f 6e 79 6d |ottomM--| Synonym|
|00003b70| 20 66 6f 72 20 6d 53 65 | 74 57 69 6e 64 6f 77 4f | for mSe|tWindowO|
|00003b80| 75 74 73 69 64 65 52 65 | 63 74 2c 20 66 6f 72 20 |utsideRe|ct, for |
|00003b90| 63 6f 6d 70 61 74 69 62 | 69 69 74 79 20 77 69 74 |compatib|iity wit|
|00003ba0| 68 20 65 61 72 6c 69 65 | 72 20 76 65 72 73 69 6f |h earlie|r versio|
|00003bb0| 6e 73 2e 1b 49 49 20 6d | 57 69 6e 64 6f 77 54 6f |ns..II m|WindowTo|
|00003bc0| 46 72 6f 6e 74 2c 20 77 | 69 6e 64 6f 77 49 44 4e |Front, w|indowIDN|
|00003bd0| 2d 2d 20 42 72 69 6e 67 | 73 20 61 20 77 69 6e 64 |-- Bring|s a wind|
|00003be0| 6f 77 20 74 6f 20 74 68 | 65 20 66 72 6f 6e 74 2e |ow to th|e front.|
|00003bf0| 20 49 66 20 74 68 65 20 | 77 69 6e 64 6f 77 27 73 | If the |window's|
|00003c00| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 | applica|tion is |
|00003c10| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 69 6e 24 2d |not alre|ady in$-|
|00003c20| 2d 20 66 72 6f 6e 74 2c | 20 69 74 20 77 69 6c 6c |- front,| it will|
|00003c30| 20 62 65 20 6d 61 64 65 | 20 66 72 6f 6e 74 6d 6f | be made| frontmo|
|00003c40| 73 74 2e 1a 49 49 20 6d | 57 69 6e 64 6f 77 54 6f |st..II m|WindowTo|
|00003c50| 42 61 63 6b 2c 20 77 69 | 6e 64 6f 77 49 44 46 2d |Back, wi|ndowIDF-|
|00003c60| 2d 20 53 65 6e 64 73 20 | 61 20 77 69 6e 64 6f 77 |- Sends |a window|
|00003c70| 20 74 6f 20 74 68 65 20 | 62 61 63 6b 2e 20 44 6f | to the |back. Do|
|00003c80| 65 73 20 6e 6f 74 20 61 | 66 66 65 63 74 20 61 70 |es not a|ffect ap|
|00003c90| 70 6c 69 63 61 74 69 6f | 6e 20 64 72 61 77 20 6f |plicatio|n draw o|
|00003ca0| 72 64 65 72 21 19 49 49 | 20 6d 43 6c 6f 73 65 57 |rder!.II| mCloseW|
|00003cb0| 69 6e 64 6f 77 2c 20 77 | 69 6e 64 6f 77 49 44 4f |indow, w|indowIDO|
|00003cc0| 2d 2d 20 53 69 6d 75 6c | 61 74 65 73 20 61 20 6d |-- Simul|ates a m|
|00003cd0| 6f 75 73 65 20 70 72 65 | 73 73 20 6f 6e 20 61 20 |ouse pre|ss on a |
|00003ce0| 77 69 6e 64 6f 77 27 73 | 20 63 6c 6f 73 65 20 62 |window's| close b|
|00003cf0| 6f 78 2e 20 44 6f 65 73 | 20 6e 6f 74 20 77 6f 72 |ox. Does| not wor|
|00003d00| 6b 20 69 66 20 74 68 65 | 20 77 69 6e 64 6f 77 4b |k if the| windowK|
|00003d10| 2d 2d 20 64 6f 65 73 20 | 6e 6f 74 20 68 61 76 65 |-- does |not have|
|00003d20| 20 61 20 63 6c 6f 73 65 | 20 62 6f 78 21 20 41 6c | a close| box! Al|
|00003d30| 73 6f 2c 20 61 20 77 69 | 6e 64 6f 77 20 6d 61 79 |so, a wi|ndow may|
|00003d40| 20 6e 6f 74 20 68 61 76 | 65 20 61 20 63 6c 6f 73 | not hav|e a clos|
|00003d50| 65 20 62 6f 78 20 75 6e | 74 69 6c 55 2d 2d 20 69 |e box un|tilU-- i|
|00003d60| 74 27 73 20 66 72 6f 6e | 74 6d 6f 73 74 2e 20 57 |t's fron|tmost. W|
|00003d70| 69 74 68 20 73 6f 6d 65 | 20 61 70 70 73 2c 20 74 |ith some| apps, t|
|00003d80| 6f 20 63 6c 6f 73 65 20 | 77 69 6e 64 6f 77 73 2c |o close |windows,|
|00003d90| 20 79 6f 75 20 6d 61 79 | 20 6e 65 65 64 20 74 6f | you may| need to|
|00003da0| 20 73 65 6e 64 20 61 20 | 66 61 6b 65 20 6d 65 6e | send a |fake men|
|00003db0| 75 51 2d 2d 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |uQ-- com|mand to |
|00003dc0| 63 6c 6f 73 65 20 61 20 | 77 69 6e 64 6f 77 2c 20 |close a |window, |
|00003dd0| 6f 72 20 73 65 6e 64 20 | 61 20 66 61 6b 65 20 6d |or send |a fake m|
|00003de0| 6f 75 73 65 20 70 72 65 | 73 73 20 74 6f 20 73 6f |ouse pre|ss to so|
|00003df0| 6d 65 20 69 6e 74 65 72 | 66 61 63 65 20 67 61 64 |me inter|face gad|
|00003e00| 67 65 74 50 2d 2d 20 77 | 69 74 68 69 6e 20 74 68 |getP-- w|ithin th|
|00003e10| 65 20 77 69 6e 64 6f 77 | 20 61 72 65 61 20 69 74 |e window| area it|
|00003e20| 73 65 6c 66 2e 20 4e 6f | 74 65 20 31 3a 20 6d 48 |self. No|te 1: mH|
|00003e30| 69 64 65 57 69 6e 64 6f | 77 20 6d 61 79 20 77 6f |ideWindo|w may wo|
|00003e40| 72 6b 20 62 65 74 74 65 | 72 2d 2d 20 44 69 72 65 |rk bette|r-- Dire|
|00003e50| 63 74 6f 72 4a 2d 2d 20 | 69 74 73 65 6c 66 20 73 |ctorJ-- |itself s|
|00003e60| 69 6d 70 6c 79 20 68 69 | 64 65 73 20 61 75 74 68 |imply hi|des auth|
|00003e70| 6f 72 69 6e 67 2d 74 69 | 6d 65 20 77 69 6e 64 6f |oring-ti|me windo|
|00003e80| 77 73 20 77 68 65 6e 20 | 70 72 65 73 73 69 6e 67 |ws when |pressing|
|00003e90| 20 74 68 65 20 63 6c 6f | 73 65 20 62 6f 78 2e 4b | the clo|se box.K|
|00003ea0| 2d 2d 20 4e 6f 74 65 20 | 32 3a 20 57 69 6e 64 6f |-- Note |2: Windo|
|00003eb0| 77 73 20 61 70 70 73 20 | 71 75 69 74 20 77 68 65 |ws apps |quit whe|
|00003ec0| 6e 20 74 68 65 20 6d 61 | 69 6e 20 77 69 6e 64 6f |n the ma|in windo|
|00003ed0| 77 20 63 6c 6f 73 65 73 | 2c 20 62 75 74 20 6d 6f |w closes|, but mo|
|00003ee0| 73 74 20 4d 61 63 20 61 | 70 70 73 4e 2d 2d 20 64 |st Mac a|ppsN-- d|
|00003ef0| 6f 6e 27 74 20 71 75 69 | 74 2c 20 61 6e 64 20 73 |on't qui|t, and s|
|00003f00| 74 69 6c 6c 20 73 68 6f | 77 20 61 20 6d 65 6e 75 |till sho|w a menu|
|00003f10| 2e 20 55 73 65 20 6d 52 | 75 64 65 51 75 69 74 54 |. Use mR|udeQuitT|
|00003f20| 61 73 6b 20 69 6e 20 73 | 75 63 68 20 63 61 73 65 |ask in s|uch case|
|00003f30| 73 2e 20 4e 6f 74 65 20 | 33 3a 4e 2d 2d 20 62 79 |s. Note |3:N-- by|
|00003f40| 20 64 65 66 61 75 6c 74 | 2c 20 74 68 65 20 63 65 | default|, the ce|
|00003f50| 6e 74 65 72 20 6f 66 20 | 74 68 65 20 63 6c 6f 73 |nter of |the clos|
|00003f60| 65 20 62 6f 78 20 69 73 | 20 61 73 73 75 6d 65 64 |e box is| assumed|
|00003f70| 20 74 6f 20 62 65 20 31 | 34 20 70 69 78 65 6c 73 | to be 1|4 pixels|
|00003f80| 20 66 72 6f 6d 20 74 68 | 65 50 2d 2d 20 6c 65 66 | from th|eP-- lef|
|00003f90| 74 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |t of the| window |
|00003fa0| 74 69 74 6c 65 20 62 61 | 72 2c 20 61 6e 64 20 38 |title ba|r, and 8|
|00003fb0| 20 70 69 78 65 6c 73 20 | 66 72 6f 6d 20 74 68 65 | pixels |from the|
|00003fc0| 20 74 6f 70 2e 20 59 6f | 75 20 63 61 6e 20 63 68 | top. Yo|u can ch|
|00003fd0| 61 6e 67 65 20 74 68 65 | 73 65 52 2d 2d 20 76 61 |ange the|seR-- va|
|00003fe0| 6c 75 65 73 20 77 69 74 | 68 20 74 68 65 20 6d 53 |lues wit|h the mS|
|00003ff0| 65 74 43 6c 6f 73 65 42 | 6f 78 4f 66 66 73 65 74 |etCloseB|oxOffset|
|00004000| 20 6d 65 74 68 6f 64 3b | 20 79 6f 75 20 63 61 6e | method;| you can|
|00004010| 20 61 6c 73 6f 20 75 73 | 65 20 74 68 65 20 6d 46 | also us|e the mF|
|00004020| 69 6e 64 57 69 6e 64 6f | 77 50 61 72 74 4f 2d 2d |indWindo|wPartO--|
|00004030| 20 6d 65 74 68 6f 64 20 | 74 6f 20 6c 6f 63 61 74 | method |to locat|
|00004040| 65 20 6f 6e 65 20 6f 66 | 20 44 69 72 65 63 74 6f |e one of| Directo|
|00004050| 72 27 73 20 6f 77 6e 20 | 77 69 6e 64 6f 77 73 27 |r's own |windows'|
|00004060| 20 63 6c 6f 73 65 20 62 | 6f 78 2e 20 54 68 65 73 | close b|ox. Thes|
|00004070| 65 20 6d 65 74 68 6f 64 | 73 20 61 72 65 54 2d 2d |e method|s areT--|
|00004080| 20 75 73 65 66 75 6c 20 | 77 68 65 6e 20 79 6f 75 | useful |when you|
|00004090| 20 6e 65 65 64 20 74 6f | 20 75 73 65 20 6d 43 6c | need to| use mCl|
|000040a0| 6f 73 65 57 69 6e 64 6f | 77 20 6f 6e 20 6e 6f 6e |oseWindo|w on non|
|000040b0| 2d 52 6f 6d 61 6e 20 73 | 79 73 74 65 6d 73 20 6f |-Roman s|ystems o|
|000040c0| 72 20 77 69 74 68 20 6e | 6f 6e 73 74 61 6e 64 61 |r with n|onstanda|
|000040d0| 72 64 54 2d 2d 20 65 78 | 74 65 6e 73 69 6f 6e 73 |rdT-- ex|tensions|
|000040e0| 20 74 68 61 74 20 61 6c | 74 65 72 20 74 68 65 20 | that al|ter the |
|000040f0| 6c 6f 6f 6b 20 6f 66 20 | 77 69 6e 64 6f 77 20 74 |look of |window t|
|00004100| 69 74 6c 65 20 62 61 72 | 73 2e 20 52 65 74 75 72 |itle bar|s. Retur|
|00004110| 6e 20 76 61 6c 75 65 73 | 3a 20 30 3a 20 6f 6b 3b |n values|: 0: ok;|
|00004120| 20 31 3a 20 62 61 64 25 | 2d 2d 20 77 69 6e 64 6f | 1: bad%|-- windo|
|00004130| 77 49 44 3b 20 32 3a 20 | 6e 6f 20 77 69 6e 64 64 |wID; 2: |no windd|
|00004140| 6f 77 20 74 69 74 6c 65 | 20 62 61 72 2e 28 58 49 |ow title| bar.(XI|
|00004150| 49 20 6d 53 65 74 43 6c | 6f 73 65 42 6f 78 4f 66 |I mSetCl|oseBoxOf|
|00004160| 66 73 65 74 2c 20 68 4f | 66 66 73 65 74 2c 20 76 |fset, hO|ffset, v|
|00004170| 4f 66 66 73 65 74 55 2d | 2d 20 41 6c 6c 6f 77 73 |OffsetU-|- Allows|
|00004180| 20 79 6f 75 20 74 6f 20 | 63 68 61 6e 67 65 20 74 | you to |change t|
|00004190| 68 65 20 64 65 66 61 75 | 6c 74 20 61 73 73 75 6d |he defau|lt assum|
|000041a0| 70 74 69 6f 6e 20 74 68 | 61 74 20 61 20 77 69 6e |ption th|at a win|
|000041b0| 64 6f 77 27 73 20 63 6c | 6f 73 65 20 62 6f 78 20 |dow's cl|ose box |
|000041c0| 69 73 20 31 34 20 70 69 | 78 65 6c 73 55 2d 2d 20 |is 14 pi|xelsU-- |
|000041d0| 66 72 6f 6d 20 6c 65 66 | 74 20 61 6e 64 20 38 20 |from lef|t and 8 |
|000041e0| 70 69 78 65 6c 73 20 66 | 72 6f 6d 20 74 68 65 20 |pixels f|rom the |
|000041f0| 74 6f 70 20 6f 66 20 74 | 68 65 20 77 69 6e 64 6f |top of t|he windo|
|00004200| 77 20 74 69 74 6c 65 20 | 62 61 72 2e 20 41 66 66 |w title |bar. Aff|
|00004210| 65 63 74 73 20 6d 43 6c | 6f 73 65 57 69 6e 64 6f |ects mCl|oseWindo|
|00004220| 77 2e 19 49 49 49 20 6d | 46 69 6e 64 57 69 6e 64 |w..III m|FindWind|
|00004230| 6f 77 50 61 72 74 2c 20 | 78 2c 20 79 50 2d 2d 20 |owPart, |x, yP-- |
|00004240| 41 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 66 69 |Allows y|ou to fi|
|00004250| 6e 64 20 77 68 61 74 20 | 70 61 72 74 20 6f 66 20 |nd what |part of |
|00004260| 61 20 77 69 6e 64 6f 77 | 20 69 73 20 75 6e 64 65 |a window| is unde|
|00004270| 72 20 70 6f 69 6e 74 28 | 78 2c 79 29 2e 20 4f 6e |r point(|x,y). On|
|00004280| 6c 79 20 61 70 70 6c 69 | 65 73 20 74 6f 55 2d 2d |ly appli|es toU--|
|00004290| 20 74 68 65 20 44 69 72 | 65 63 74 6f 72 20 74 61 | the Dir|ector ta|
|000042a0| 73 6b 27 73 20 6f 77 6e | 20 77 69 6e 64 6f 77 73 |sk's own| windows|
|000042b0| 2e 20 52 65 74 75 72 6e | 73 20 6e 65 67 61 74 69 |. Return|s negati|
|000042c0| 76 65 20 6e 75 6d 62 65 | 72 20 6f 6e 20 65 72 72 |ve numbe|r on err|
|000042d0| 6f 72 2c 20 6f 72 20 6f | 6e 65 20 6f 66 20 74 68 |or, or o|ne of th|
|000042e0| 65 73 65 56 2d 2d 20 63 | 6f 64 65 73 3a 20 30 3a |eseV-- c|odes: 0:|
|000042f0| 20 6f 75 74 73 69 64 65 | 20 61 6e 79 20 44 69 72 | outside| any Dir|
|00004300| 65 63 74 6f 72 20 77 69 | 6e 64 6f 77 73 3b 20 31 |ector wi|ndows; 1|
|00004310| 3a 20 69 6e 20 6d 65 6e | 75 20 62 61 72 3b 20 32 |: in men|u bar; 2|
|00004320| 3a 20 69 6e 20 64 65 73 | 6b 20 61 63 63 65 73 73 |: in des|k access|
|00004330| 6f 72 79 20 77 69 6e 64 | 6f 77 56 2d 2d 20 74 68 |ory wind|owV-- th|
|00004340| 61 74 27 73 20 62 65 65 | 6e 20 6c 61 75 6e 63 68 |at's bee|n launch|
|00004350| 65 64 20 69 6e 20 44 69 | 72 65 63 74 6f 72 27 73 |ed in Di|rector's|
|00004360| 20 6d 65 6d 6f 72 79 20 | 70 61 72 74 69 74 69 6f | memory |partitio|
|00004370| 6e 3b 20 33 3a 20 77 69 | 6e 64 6f 77 20 63 6f 6e |n; 3: wi|ndow con|
|00004380| 74 65 6e 74 20 61 72 65 | 61 20 28 65 78 63 65 70 |tent are|a (excep|
|00004390| 74 52 2d 2d 20 61 6e 79 | 20 73 69 7a 65 20 62 6f |tR-- any| size bo|
|000043a0| 78 65 73 29 3b 20 34 3a | 20 74 69 74 6c 65 20 62 |xes); 4:| title b|
|000043b0| 61 72 3b 20 35 3a 20 73 | 69 7a 65 20 62 6f 78 20 |ar; 5: s|ize box |
|000043c0| 28 61 63 74 69 76 65 20 | 77 69 6e 64 6f 77 73 20 |(active |windows |
|000043d0| 6f 6e 6c 79 29 3b 20 36 | 3a 20 63 6c 6f 73 65 20 |only); 6|: close |
|000043e0| 62 6f 78 3b 54 2d 2d 20 | 37 3a 20 7a 6f 6f 6d 20 |box;T-- |7: zoom |
|000043f0| 62 6f 78 20 28 73 74 61 | 6e 64 61 72 64 20 73 74 |box (sta|ndard st|
|00004400| 61 74 65 29 3b 20 38 3a | 20 7a 6f 6f 6d 20 62 6f |ate); 8:| zoom bo|
|00004410| 78 20 28 75 73 65 72 27 | 73 20 73 74 61 74 65 29 |x (user'|s state)|
|00004420| 2e 20 44 69 6d 65 6e 73 | 69 6f 6e 73 20 61 72 65 |. Dimens|ions are|
|00004430| 20 72 65 6c 61 74 69 76 | 65 3a 2d 2d 20 74 6f 20 | relativ|e:-- to |
|00004440| 74 68 65 20 74 6f 70 20 | 6c 65 66 74 20 6f 66 20 |the top |left of |
|00004450| 74 68 65 20 73 63 72 65 | 65 6e 20 77 69 74 68 20 |the scre|en with |
|00004460| 74 68 65 20 46 69 6e 64 | 65 72 20 6d 65 6e 75 20 |the Find|er menu |
|00004470| 62 61 72 2e 1a 49 49 20 | 6d 57 69 6e 64 6f 77 45 |bar..II |mWindowE|
|00004480| 78 69 73 74 73 2c 20 77 | 69 6e 64 6f 77 49 44 39 |xists, w|indowID9|
|00004490| 2d 2d 20 52 65 74 75 72 | 6e 73 20 54 52 55 45 20 |-- Retur|ns TRUE |
|000044a0| 69 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 73 74 |if the w|indow st|
|000044b0| 69 6c 6c 20 65 78 69 73 | 74 73 2c 20 46 41 4c 53 |ill exis|ts, FALS|
|000044c0| 45 20 69 66 20 6e 6f 74 | 2e 18 49 49 20 6d 53 68 |E if not|..II mSh|
|000044d0| 6f 77 57 69 6e 64 6f 77 | 2c 20 77 69 6e 64 6f 77 |owWindow|, window|
|000044e0| 49 44 53 2d 2d 20 53 68 | 6f 77 73 20 61 20 68 69 |IDS-- Sh|ows a hi|
|000044f0| 64 64 65 6e 20 77 69 6e | 64 6f 77 20 28 61 6e 64 |dden win|dow (and|
|00004500| 20 6d 61 6b 65 73 20 69 | 74 73 20 61 70 70 6c 69 | makes i|ts appli|
|00004510| 63 61 74 69 6f 6e 20 66 | 72 6f 6e 74 6d 6f 73 74 |cation f|rontmost|
|00004520| 20 69 66 20 69 74 27 73 | 20 6e 6f 74 20 61 6c 72 | if it's| not alr|
|00004530| 65 61 64 79 29 2e 50 2d | 2d 20 59 6f 75 20 70 72 |eady).P-|- You pr|
|00004540| 6f 62 61 62 6c 79 20 77 | 61 6e 74 20 74 6f 20 75 |obably w|ant to u|
|00004550| 73 65 20 6d 53 65 74 41 | 63 74 69 76 65 57 69 6e |se mSetA|ctiveWin|
|00004560| 64 6f 77 20 6f 72 20 6d | 57 69 6e 64 6f 77 54 6f |dow or m|WindowTo|
|00004570| 46 72 6f 6e 74 20 72 69 | 67 68 74 20 61 66 74 65 |Front ri|ght afte|
|00004580| 72 20 74 68 69 73 21 3b | 2d 2d 20 52 65 74 75 72 |r this!;|-- Retur|
|00004590| 6e 73 20 30 20 66 6f 72 | 20 73 75 63 63 65 73 73 |ns 0 for| success|
|000045a0| 2c 20 6f 72 20 2d 31 20 | 69 66 20 74 68 65 20 77 |, or -1 |if the w|
|000045b0| 69 6e 64 6f 77 49 44 20 | 69 73 20 69 6e 76 61 6c |indowID |is inval|
|000045c0| 69 64 2e 18 49 49 20 6d | 48 69 64 65 57 69 6e 64 |id..II m|HideWind|
|000045d0| 6f 77 2c 20 77 69 6e 64 | 6f 77 49 44 54 2d 2d 20 |ow, wind|owIDT-- |
|000045e0| 48 69 64 65 73 20 61 20 | 76 69 73 69 62 6c 65 20 |Hides a |visible |
|000045f0| 77 69 6e 64 6f 77 20 28 | 61 6e 64 20 6d 61 6b 65 |window (|and make|
|00004600| 73 20 69 74 73 20 61 70 | 70 6c 69 63 61 74 69 6f |s its ap|plicatio|
|00004610| 6e 20 66 72 6f 6e 74 6d | 6f 73 74 20 69 66 20 69 |n frontm|ost if i|
|00004620| 74 27 73 20 6e 6f 74 20 | 61 6c 72 65 61 64 79 29 |t's not |already)|
|00004630| 2e 4e 2d 2d 20 4e 6f 74 | 65 20 74 68 61 74 20 61 |.N-- Not|e that a|
|00004640| 6e 20 61 70 70 20 6d 69 | 67 68 74 20 6e 6f 74 20 |n app mi|ght not |
|00004650| 72 65 61 6c 69 7a 65 20 | 69 74 73 20 77 69 6e 64 |realize |its wind|
|00004660| 6f 77 20 69 73 20 68 69 | 64 64 65 6e 20 28 69 2e |ow is hi|dden (i.|
|00004670| 65 2e 2c 20 74 68 65 20 | 44 69 72 65 63 74 6f 72 |e., the |Director|
|00004680| 4d 2d 2d 20 61 75 74 68 | 6f 72 69 6e 67 20 77 69 |M-- auth|oring wi|
|00004690| 6e 64 6f 77 73 20 6d 61 | 79 20 6e 65 65 64 20 74 |ndows ma|y need t|
|000046a0| 6f 20 62 65 20 73 65 6c | 65 63 74 65 64 20 74 77 |o be sel|ected tw|
|000046b0| 69 63 65 20 69 6e 20 74 | 68 65 20 6d 65 6e 75 73 |ice in t|he menus|
|000046c0| 20 74 6f 20 72 65 61 70 | 70 65 61 72 29 2e 3b 2d | to reap|pear).;-|
|000046d0| 2d 20 52 65 74 75 72 6e | 73 20 30 20 66 6f 72 20 |- Return|s 0 for |
|000046e0| 73 75 63 63 65 73 73 2c | 20 6f 72 20 2d 31 20 69 |success,| or -1 i|
|000046f0| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 49 44 20 69 |f the wi|ndowID i|
|00004700| 73 20 69 6e 76 61 6c 69 | 64 2e 1c 49 49 20 6d 4d |s invali|d..II mM|
|00004710| 69 6e 69 6d 69 7a 65 57 | 69 6e 64 6f 77 2c 20 77 |inimizeW|indow, w|
|00004720| 69 6e 64 6f 77 49 44 54 | 2d 2d 20 4d 61 6b 65 73 |indowIDT|-- Makes|
|00004730| 20 61 20 77 69 6e 64 6f | 77 20 75 73 65 20 74 68 | a windo|w use th|
|00004740| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 64 65 |e applic|ation de|
|00004750| 66 69 6e 65 64 20 73 74 | 61 6e 64 61 72 64 20 73 |fined st|andard s|
|00004760| 74 61 74 65 20 28 74 68 | 65 20 63 6c 6f 73 65 73 |tate (th|e closes|
|00004770| 74 20 65 71 75 69 76 61 | 6c 65 6e 74 52 2d 2d 20 |t equiva|lentR-- |
|00004780| 6f 6e 20 74 68 65 20 4d | 61 63 20 74 6f 20 74 68 |on the M|ac to th|
|00004790| 69 73 20 57 69 6e 64 6f | 77 73 20 66 75 6e 63 74 |is Windo|ws funct|
|000047a0| 69 6f 6e 29 2e 20 44 65 | 66 61 75 6c 74 20 61 73 |ion). De|fault as|
|000047b0| 73 75 6d 70 74 69 6f 6e | 73 20 61 62 6f 75 74 20 |sumption|s about |
|000047c0| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 20 6f 66 54 |the loca|tion ofT|
|000047d0| 2d 2d 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |-- the s|tandard |
|000047e0| 73 74 61 74 65 20 7a 6f | 6f 6d 20 67 61 64 67 65 |state zo|om gadge|
|000047f0| 74 20 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |t in the| window |
|00004800| 74 69 74 6c 65 20 62 61 | 72 20 63 61 6e 20 62 65 |title ba|r can be|
|00004810| 20 6f 76 65 72 72 69 64 | 64 65 6e 20 77 69 74 68 | overrid|den with|
|00004820| 20 74 68 65 4f 2d 2d 20 | 6d 53 65 74 53 74 61 6e | theO-- |mSetStan|
|00004830| 64 61 72 64 5a 6f 6f 6d | 4f 66 66 73 65 74 20 6d |dardZoom|Offset m|
|00004840| 65 74 68 6f 64 2e 20 52 | 65 74 75 72 6e 73 20 2d |ethod. R|eturns -|
|00004850| 31 20 66 6f 72 20 62 61 | 64 20 77 69 6e 64 6f 77 |1 for ba|d window|
|00004860| 49 44 20 6f 72 20 30 20 | 66 6f 72 20 73 75 63 63 |ID or 0 |for succ|
|00004870| 65 73 73 2e 54 2d 2d 20 | 4e 6f 74 65 20 74 68 61 |ess.T-- |Note tha|
|00004880| 74 20 74 68 65 20 77 69 | 6e 64 6f 77 20 61 6e 64 |t the wi|ndow and|
|00004890| 20 69 74 73 20 61 70 70 | 20 73 68 6f 75 6c 64 20 | its app| should |
|000048a0| 61 6c 72 65 61 64 79 20 | 62 65 20 66 72 6f 6e 74 |already |be front|
|000048b0| 6d 6f 73 74 20 28 6f 72 | 20 74 68 65 20 73 74 61 |most (or| the sta|
|000048c0| 74 65 20 6f 66 20 74 68 | 65 4d 2d 2d 20 77 69 6e |te of th|eM-- win|
|000048d0| 64 6f 77 20 6d 69 67 68 | 74 20 73 69 6d 70 6c 79 |dow migh|t simply|
|000048e0| 20 62 65 20 74 6f 67 67 | 6c 65 64 20 66 72 6f 6d | be togg|led from|
|000048f0| 20 69 74 73 20 63 75 72 | 72 65 6e 74 20 73 74 61 | its cur|rent sta|
|00004900| 74 65 2c 20 6f 72 20 6c | 65 66 74 20 75 6e 63 68 |te, or l|eft unch|
|00004910| 61 6e 67 65 64 29 2e 1c | 49 49 20 6d 4d 61 78 69 |anged)..|II mMaxi|
|00004920| 6d 69 7a 65 57 69 6e 64 | 6f 77 2c 20 77 69 6e 64 |mizeWind|ow, wind|
|00004930| 6f 77 49 44 4b 2d 2d 20 | 4d 61 6b 65 73 20 61 20 |owIDK-- |Makes a |
|00004940| 77 69 6e 64 6f 77 20 75 | 73 65 20 74 68 65 20 75 |window u|se the u|
|00004950| 73 65 72 20 64 65 66 69 | 6e 65 64 20 77 69 6e 64 |ser defi|ned wind|
|00004960| 6f 77 20 73 74 61 74 65 | 20 28 74 68 65 20 63 6c |ow state| (the cl|
|00004970| 6f 73 65 73 74 20 65 71 | 75 69 76 61 6c 65 6e 74 |osest eq|uivalent|
|00004980| 52 2d 2d 20 6f 6e 20 74 | 68 65 20 4d 61 63 20 74 |R-- on t|he Mac t|
|00004990| 6f 20 74 68 69 73 20 57 | 69 6e 64 6f 77 73 20 66 |o this W|indows f|
|000049a0| 75 6e 63 74 69 6f 6e 29 | 2e 20 44 65 66 61 75 6c |unction)|. Defaul|
|000049b0| 74 20 61 73 73 75 6d 70 | 74 69 6f 6e 73 20 61 62 |t assump|tions ab|
|000049c0| 6f 75 74 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |out the |location|
|000049d0| 20 6f 66 50 2d 2d 20 74 | 68 65 20 75 73 65 72 20 | ofP-- t|he user |
|000049e0| 73 74 61 74 65 20 7a 6f | 6f 6d 20 67 61 64 67 65 |state zo|om gadge|
|000049f0| 74 20 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |t in the| window |
|00004a00| 74 69 74 6c 65 20 62 61 | 72 20 63 61 6e 20 62 65 |title ba|r can be|
|00004a10| 20 6f 76 65 72 72 69 64 | 64 65 6e 20 77 69 74 68 | overrid|den with|
|00004a20| 20 74 68 65 54 2d 2d 20 | 4e 6f 74 65 20 74 68 61 | theT-- |Note tha|
|00004a30| 74 20 74 68 65 20 77 69 | 6e 64 6f 77 20 61 6e 64 |t the wi|ndow and|
|00004a40| 20 69 74 73 20 61 70 70 | 20 73 68 6f 75 6c 64 20 | its app| should |
|00004a50| 61 6c 72 65 61 64 79 20 | 62 65 20 66 72 6f 6e 74 |already |be front|
|00004a60| 6d 6f 73 74 20 28 6f 72 | 20 74 68 65 20 73 74 61 |most (or| the sta|
|00004a70| 74 65 20 6f 66 20 74 68 | 65 4d 2d 2d 20 77 69 6e |te of th|eM-- win|
|00004a80| 64 6f 77 20 6d 69 67 68 | 74 20 73 69 6d 70 6c 79 |dow migh|t simply|
|00004a90| 20 62 65 20 74 6f 67 67 | 6c 65 64 20 66 72 6f 6d | be togg|led from|
|00004aa0| 20 69 74 73 20 63 75 72 | 72 65 6e 74 20 73 74 61 | its cur|rent sta|
|00004ab0| 74 65 2c 20 6f 72 20 6c | 65 66 74 20 75 6e 63 68 |te, or l|eft unch|
|00004ac0| 61 6e 67 65 64 29 2e 4b | 2d 2d 20 6d 53 65 74 55 |anged).K|-- mSetU|
|00004ad0| 73 65 72 5a 6f 6f 6d 4f | 66 66 73 65 74 20 6d 65 |serZoomO|ffset me|
|00004ae0| 74 68 6f 64 2e 20 52 65 | 74 75 72 6e 73 20 2d 31 |thod. Re|turns -1|
|00004af0| 20 66 6f 72 20 62 61 64 | 20 77 69 6e 64 6f 77 49 | for bad| windowI|
|00004b00| 44 20 6f 72 20 30 20 66 | 6f 72 20 73 75 63 63 65 |D or 0 f|or succe|
|00004b10| 73 73 2e 1b 49 49 20 6d | 52 65 73 74 6f 72 65 57 |ss..II m|RestoreW|
|00004b20| 69 6e 64 6f 77 2c 20 77 | 69 6e 64 6f 77 49 44 54 |indow, w|indowIDT|
|00004b30| 2d 2d 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 6a |-- On th|e Mac, j|
|00004b40| 75 73 74 20 61 20 73 79 | 6e 6f 6e 6d 79 6d 20 66 |ust a sy|nonmym f|
|00004b50| 6f 72 20 6d 4d 61 78 69 | 6d 69 7a 65 57 69 6e 64 |or mMaxi|mizeWind|
|00004b60| 6f 77 20 28 77 68 69 63 | 68 20 73 65 74 73 20 74 |ow (whic|h sets t|
|00004b70| 68 65 20 75 73 65 72 20 | 7a 6f 6f 6d 20 73 74 61 |he user |zoom sta|
|00004b80| 74 65 29 2e 1c 58 49 49 | 20 6d 53 65 74 55 73 65 |te)..XII| mSetUse|
|00004b90| 72 5a 6f 6f 6d 4f 66 66 | 73 65 74 2c 20 78 2c 20 |rZoomOff|set, x, |
|00004ba0| 79 20 58 49 49 20 6d 53 | 65 74 53 74 61 6e 64 61 |y XII mS|etStanda|
|00004bb0| 72 64 5a 6f 6f 6d 4f 66 | 66 73 65 74 2c 20 78 2c |rdZoomOf|fset, x,|
|00004bc0| 20 79 58 2d 2d 20 41 6c | 6c 6f 77 73 20 79 6f 75 | yX-- Al|lows you|
|00004bd0| 20 74 6f 20 6f 76 65 72 | 72 69 64 65 20 74 68 65 | to over|ride the|
|00004be0| 20 64 65 66 61 75 6c 74 | 20 61 73 73 75 6d 70 74 | default| assumpt|
|00004bf0| 69 6f 6e 20 74 68 61 74 | 20 74 68 65 20 75 73 65 |ion that| the use|
|00004c00| 72 20 61 6e 64 20 73 74 | 61 6e 64 61 72 64 20 7a |r and st|andard z|
|00004c10| 6f 6f 6d 20 67 61 64 67 | 65 74 73 56 2d 2d 20 61 |oom gadg|etsV-- a|
|00004c20| 72 65 20 6c 6f 63 61 74 | 65 64 20 31 34 20 70 69 |re locat|ed 14 pi|
|00004c30| 78 65 6c 73 20 6c 65 66 | 74 20 61 6e 64 20 38 20 |xels lef|t and 8 |
|00004c40| 70 69 78 65 6c 73 20 64 | 6f 77 6e 20 66 72 6f 6d |pixels d|own from|
|00004c50| 20 74 68 65 20 74 6f 70 | 20 72 69 67 68 74 20 6f | the top| right o|
|00004c60| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 74 69 74 |f the wi|ndow tit|
|00004c70| 6c 65 54 2d 2d 20 62 61 | 72 2e 20 54 68 69 73 20 |leT-- ba|r. This |
|00004c80| 63 61 6e 20 62 65 20 75 | 73 65 66 75 6c 20 6f 6e |can be u|seful on|
|00004c90| 20 6e 6f 6e 2d 52 6f 6d | 61 6e 20 73 79 73 74 65 | non-Rom|an syste|
|00004ca0| 6d 20 76 65 72 73 69 6f | 6e 73 2c 20 77 68 65 6e |m versio|ns, when|
|00004cb0| 20 74 68 69 72 64 2d 70 | 61 72 74 79 20 65 78 74 | third-p|arty ext|
|00004cc0| 65 6e 73 69 6f 6e 73 50 | 2d 2d 20 6c 69 6b 65 20 |ensionsP|-- like |
|00004cd0| 41 61 72 6f 6e 20 63 68 | 61 6e 67 65 20 74 68 65 |Aaron ch|ange the|
|00004ce0| 20 61 70 70 65 61 72 61 | 6e 63 65 20 6f 66 20 74 | appeara|nce of t|
|00004cf0| 68 65 20 77 69 6e 64 6f | 77 20 74 69 74 6c 65 20 |he windo|w title |
|00004d00| 62 61 72 73 2c 20 6f 72 | 20 69 6e 20 66 75 74 75 |bars, or| in futu|
|00004d10| 72 65 20 41 70 70 6c 65 | 52 2d 2d 20 73 79 73 74 |re Apple|R-- syst|
|00004d20| 65 6d 20 76 65 72 73 69 | 6f 6e 73 2e 20 55 73 65 |em versi|ons. Use|
|00004d30| 20 6d 46 69 6e 64 57 69 | 6e 64 6f 77 50 61 72 74 | mFindWi|ndowPart|
|00004d40| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 | to dete|rmine th|
|00004d50| 69 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |is infor|mation o|
|00004d60| 6e 20 6e 6f 6e 2d 52 6f | 6d 61 6e 0b 2d 2d 20 73 |n non-Ro|man.-- s|
|00004d70| 79 73 74 65 6d 73 2e 02 | 2d 2d 02 2d 2d 31 2d 2d |ystems..|--.--1--|
|00004d80| 20 4f 74 68 65 72 20 6d | 65 74 68 6f 64 73 2c 20 | Other m|ethods, |
|00004d90| 6e 6f 74 20 79 65 74 20 | 70 6c 61 63 65 64 20 69 |not yet |placed i|
|00004da0| 6e 20 63 61 74 65 67 6f | 72 69 65 73 2e 2e 2e 31 |n catego|ries...1|
|00004db0| 2d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |-- -----|--------|
|00004dc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004dd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004de0| 2d 02 2d 2d 24 49 49 49 | 49 20 6d 46 61 6b 65 4d |-.--$III|I mFakeM|
|00004df0| 6f 75 73 65 43 6c 69 63 | 6b 2c 20 77 69 6e 64 6f |ouseClic|k, windo|
|00004e00| 77 49 44 2c 20 78 2c 20 | 79 4c 2d 2d 20 53 69 6d |wID, x, |yL-- Sim|
|00004e10| 75 6c 61 74 65 73 20 61 | 20 6d 6f 75 73 65 20 63 |ulates a| mouse c|
|00004e20| 6c 69 63 6b 20 61 6e 64 | 20 72 65 6c 65 61 73 65 |lick and| release|
|00004e30| 20 61 74 20 70 6f 69 6e | 74 28 78 2c 79 29 2e 20 | at poin|t(x,y). |
|00004e40| 49 66 20 77 69 6e 64 6f | 77 49 44 20 69 73 20 6e |If windo|wID is n|
|00004e50| 6f 74 20 74 68 65 4b 2d | 2d 20 66 72 6f 6e 74 6d |ot theK-|- frontm|
|00004e60| 6f 73 74 20 77 69 6e 64 | 6f 77 2c 20 74 68 69 73 |ost wind|ow, this|
|00004e70| 20 6d 65 74 68 6f 64 20 | 6d 61 6b 65 73 20 69 74 | method |makes it|
|00004e80| 20 73 6f 20 62 65 66 6f | 72 65 20 66 61 6b 69 6e | so befo|re fakin|
|00004e90| 67 20 74 68 65 20 6d 6f | 75 73 65 20 63 6c 69 63 |g the mo|use clic|
|00004ea0| 6b 2e 49 2d 2d 20 4f 6e | 20 57 69 6e 64 6f 77 73 |k.I-- On| Windows|
|00004eb0| 2c 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |, the wi|ndow is |
|00004ec0| 2a 6e 6f 74 2a 20 61 75 | 74 6f 6d 61 74 69 63 61 |*not* au|tomatica|
|00004ed0| 6c 6c 79 20 6d 61 64 65 | 20 66 72 6f 6e 74 6d 6f |lly made| frontmo|
|00004ee0| 73 74 2c 20 68 6f 77 65 | 76 65 72 2e 4c 2d 2d 20 |st, howe|ver.L-- |
|00004ef0| 53 75 70 70 6c 79 20 30 | 20 61 73 20 74 68 65 20 |Supply 0| as the |
|00004f00| 77 69 6e 64 6f 77 49 44 | 20 69 66 20 79 6f 75 20 |windowID| if you |
|00004f10| 64 6f 6e 27 74 20 77 61 | 6e 74 20 74 68 65 20 63 |don't wa|nt the c|
|00004f20| 6c 69 63 6b 20 73 65 6e | 74 20 74 6f 20 61 6e 79 |lick sen|t to any|
|00004f30| 20 73 70 65 63 69 66 69 | 63 4c 2d 2d 20 77 69 6e | specifi|cL-- win|
|00004f40| 64 6f 77 2e 20 49 74 27 | 73 20 75 70 20 74 6f 20 |dow. It'|s up to |
|00004f50| 79 6f 75 20 74 6f 20 61 | 73 73 75 72 65 20 74 68 |you to a|ssure th|
|00004f60| 61 74 20 78 2c 79 20 66 | 61 6c 6c 73 20 77 69 74 |at x,y f|alls wit|
|00004f70| 68 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 27 73 |hin the |window's|
|00004f80| 20 61 72 65 61 3b 4b 2d | 2d 20 63 6c 69 63 6b 73 | area;K-|- clicks|
|00004f90| 20 6f 75 74 73 69 64 65 | 20 63 6f 75 6c 64 20 61 | outside| could a|
|00004fa0| 63 74 69 76 61 74 65 20 | 6f 74 68 65 72 20 61 70 |ctivate |other ap|
|00004fb0| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 54 68 69 73 |plicatio|ns. This|
|00004fc0| 20 6d 65 74 68 6f 64 20 | 77 6f 6e 27 74 20 73 65 | method |won't se|
|00004fd0| 6e 64 3f 2d 2d 20 63 6c | 69 63 6b 73 20 74 6f 20 |nd?-- cl|icks to |
|00004fe0| 6d 65 6e 75 73 2c 20 75 | 6e 66 6f 72 74 75 6e 61 |menus, u|nfortuna|
|00004ff0| 74 65 6c 79 2e 20 55 73 | 65 20 6d 46 61 6b 65 43 |tely. Us|e mFakeC|
|00005000| 68 61 72 43 6f 64 65 20 | 66 6f 72 20 6d 65 6e 75 |harCode |for menu|
|00005010| 73 2e 28 49 49 49 49 20 | 6d 46 61 6b 65 4d 6f 75 |s.(IIII |mFakeMou|
|00005020| 73 65 43 6c 69 63 6b 57 | 61 69 74 2c 20 77 69 6e |seClickW|ait, win|
|00005030| 64 6f 77 49 44 2c 20 78 | 2c 20 79 49 2d 2d 20 4f |dowID, x|, yI-- O|
|00005040| 6e 20 74 68 65 20 4d 61 | 63 2c 20 61 20 73 79 6e |n the Ma|c, a syn|
|00005050| 6f 6e 79 6d 20 66 6f 20 | 6d 46 61 6b 65 4d 6f 75 |onym fo |mFakeMou|
|00005060| 73 65 43 6c 69 63 6b 2e | 20 54 68 65 20 64 69 66 |seClick.| The dif|
|00005070| 66 65 72 65 6e 74 20 74 | 65 63 68 69 71 75 65 73 |ferent t|echiques|
|00005080| 20 74 68 61 74 47 2d 2d | 20 75 6e 64 65 72 6c 69 | thatG--| underli|
|00005090| 65 20 74 68 65 20 74 77 | 6f 20 73 65 70 61 72 61 |e the tw|o separa|
|000050a0| 74 65 20 6d 65 74 68 6f | 64 73 20 6f 6e 20 57 69 |te metho|ds on Wi|
|000050b0| 6e 64 6f 77 73 20 64 6f | 6e 27 74 20 65 78 69 73 |ndows do|n't exis|
|000050c0| 74 20 6f 6e 20 74 68 65 | 20 4d 61 63 2e 2f 49 49 |t on the| Mac./II|
|000050d0| 49 49 49 49 20 6d 46 61 | 6b 65 4d 6f 75 73 65 44 |IIII mFa|keMouseD|
|000050e0| 72 61 67 2c 20 77 69 6e | 64 6f 77 49 44 2c 20 78 |rag, win|dowID, x|
|000050f0| 31 2c 20 79 31 2c 20 78 | 32 2c 20 79 32 47 2d 2d |1, y1, x|2, y2G--|
|00005100| 20 53 69 6d 75 6c 61 74 | 65 73 20 64 72 61 67 67 | Simulat|es dragg|
|00005110| 69 6e 67 20 74 68 65 20 | 6d 6f 75 73 65 20 66 72 |ing the |mouse fr|
|00005120| 6f 6d 20 78 31 2c 79 31 | 20 74 6f 20 78 32 2c 79 |om x1,y1| to x2,y|
|00005130| 32 20 69 6e 20 77 69 6e | 64 6f 77 20 77 69 6e 64 |2 in win|dow wind|
|00005140| 6f 77 49 44 2e 3d 2d 2d | 20 4d 61 6b 65 73 20 74 |owID.=--| Makes t|
|00005150| 68 65 20 77 69 6e 64 6f | 77 20 66 72 6f 6e 74 6d |he windo|w frontm|
|00005160| 6f 73 74 2c 20 69 66 20 | 69 74 27 73 20 6e 6f 74 |ost, if |it's not|
|00005170| 20 61 6c 72 65 61 64 79 | 20 66 72 6f 6e 74 6d 6f | already| frontmo|
|00005180| 73 74 2e 4c 2d 2d 20 53 | 75 70 70 6c 79 20 30 20 |st.L-- S|upply 0 |
|00005190| 61 73 20 74 68 65 20 77 | 69 6e 64 6f 77 49 44 20 |as the w|indowID |
|000051a0| 69 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 77 61 6e |if you d|on't wan|
|000051b0| 74 20 74 68 65 20 63 6c | 69 63 6b 20 73 65 6e 74 |t the cl|ick sent|
|000051c0| 20 74 6f 20 61 6e 79 20 | 73 70 65 63 69 66 69 63 | to any |specific|
|000051d0| 48 2d 2d 20 77 69 6e 64 | 6f 77 2e 20 42 65 63 61 |H-- wind|ow. Beca|
|000051e0| 75 73 65 20 63 65 72 74 | 61 69 6e 20 4d 61 63 20 |use cert|ain Mac |
|000051f0| 73 79 73 74 65 6d 20 66 | 75 6e 63 74 69 6f 6e 73 |system f|unctions|
|00005200| 2d 2d 20 6c 69 6b 65 20 | 73 65 6c 65 63 74 69 6e |-- like |selectin|
|00005210| 67 20 6d 65 6e 75 73 2d | 2d 4b 2d 2d 20 61 63 74 |g menus-|-K-- act|
|00005220| 75 61 6c 6c 79 20 72 65 | 71 75 69 72 65 20 74 68 |ually re|quire th|
|00005230| 65 20 6d 6f 75 73 65 20 | 63 75 72 73 6f 72 20 74 |e mouse |cursor t|
|00005240| 6f 20 62 65 20 6c 6f 63 | 61 74 65 64 20 69 6e 20 |o be loc|ated in |
|00005250| 74 68 65 20 6d 65 6e 75 | 20 61 72 65 61 73 20 61 |the menu| areas a|
|00005260| 6e 64 20 74 6f 48 2d 2d | 20 6d 6f 76 65 2c 20 74 |nd toH--| move, t|
|00005270| 68 69 73 20 6d 65 74 68 | 6f 64 20 6d 61 79 20 6e |his meth|od may n|
|00005280| 6f 74 20 77 6f 72 6b 20 | 77 69 74 68 20 61 6c 6c |ot work |with all|
|00005290| 20 64 72 61 67 20 6f 70 | 65 72 61 74 69 6f 6e 73 | drag op|erations|
|000052a0| 2e 20 48 6f 77 65 76 65 | 72 2c 20 79 6f 75 49 2d |. Howeve|r, youI-|
|000052b0| 2d 20 2a 63 61 6e 2a 20 | 64 72 61 67 20 73 69 7a |- *can* |drag siz|
|000052c0| 65 20 62 6f 78 65 73 20 | 77 69 74 68 20 69 74 2e |e boxes |with it.|
|000052d0| 20 54 68 69 73 20 63 6f | 6d 70 65 6e 73 61 74 65 | This co|mpensate|
|000052e0| 73 20 66 6f 72 20 74 68 | 65 20 64 69 66 66 65 72 |s for th|e differ|
|000052f0| 65 6e 63 65 73 20 69 6e | 48 2d 2d 20 74 68 65 20 |ences in|H-- the |
|00005300| 4d 61 63 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |Mac impl|ementati|
|00005310| 6f 6e 20 6f 66 20 6d 53 | 65 74 57 69 6e 64 6f 77 |on of mS|etWindow|
|00005320| 4f 75 74 73 69 64 65 52 | 65 63 74 2e 20 55 73 65 |OutsideR|ect. Use|
|00005330| 20 6d 46 61 6b 65 43 68 | 61 72 43 6f 64 65 20 74 | mFakeCh|arCode t|
|00005340| 6f 42 2d 2d 20 73 65 6e | 64 20 6d 65 6e 75 20 73 |oB-- sen|d menu s|
|00005350| 65 6c 65 63 74 69 6f 6e | 73 20 28 75 73 69 6e 67 |election|s (using|
|00005360| 20 6b 65 79 62 6f 61 72 | 64 20 73 68 6f 72 74 63 | keyboar|d shortc|
|00005370| 75 74 73 20 66 6f 72 20 | 6d 65 6e 75 20 69 74 65 |uts for |menu ite|
|00005380| 6d 73 29 2e 4b 2d 2d 20 | 4e 6f 74 65 3a 20 74 68 |ms).K-- |Note: th|
|00005390| 69 73 20 6d 65 74 68 6f | 64 20 69 73 20 6f 6e 6c |is metho|d is onl|
|000053a0| 79 20 75 73 61 62 6c 65 | 20 6f 6e 20 74 68 65 20 |y usable| on the |
|000053b0| 4d 61 63 20 28 57 69 6e | 64 6f 77 73 20 77 6f 72 |Mac (Win|dows wor|
|000053c0| 6b 73 20 64 69 66 66 65 | 72 65 6e 74 6c 79 29 2e |ks diffe|rently).|
|000053d0| 2e 49 49 49 49 20 6d 46 | 61 6b 65 43 68 61 72 43 |.IIII mF|akeCharC|
|000053e0| 6f 64 65 2c 20 77 69 6e | 64 6f 77 49 44 2c 20 63 |ode, win|dowID, c|
|000053f0| 68 61 72 4e 75 6d 2c 20 | 63 6f 64 65 4e 75 6d 4e |harNum, |codeNumN|
|00005400| 2d 2d 20 46 61 6b 65 73 | 20 61 20 6b 65 79 70 72 |-- Fakes| a keypr|
|00005410| 65 73 73 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 6d |ess, inc|luding m|
|00005420| 6f 64 69 66 69 65 72 20 | 6b 65 79 73 20 6c 69 6b |odifier |keys lik|
|00005430| 65 20 63 6f 6d 6d 61 6e | 64 2c 20 63 6f 6e 74 72 |e comman|d, contr|
|00005440| 6f 6c 2c 20 65 74 63 2e | 20 4e 6f 74 65 3a 52 2d |ol, etc.| Note:R-|
|00005450| 2d 20 4d 61 63 20 6b 65 | 79 20 26 20 6d 6f 75 73 |- Mac ke|y & mous|
|00005460| 65 20 65 76 65 6e 74 73 | 2c 20 75 6e 6c 69 6b 65 |e events|, unlike|
|00005470| 20 57 69 6e 64 6f 77 73 | 2c 20 61 72 65 6e 27 74 | Windows|, aren't|
|00005480| 20 73 65 6e 74 20 64 69 | 72 65 63 74 6c 79 20 74 | sent di|rectly t|
|00005490| 6f 20 77 69 6e 64 6f 77 | 73 2c 20 73 6f 20 74 68 |o window|s, so th|
|000054a0| 65 4f 2d 2d 20 73 75 70 | 70 6c 69 65 64 20 77 69 |eO-- sup|plied wi|
|000054b0| 6e 64 6f 77 49 44 20 77 | 69 6c 6c 20 73 69 6d 70 |ndowID w|ill simp|
|000054c0| 6c 79 20 62 65 20 6d 61 | 64 65 20 66 72 6f 6e 74 |ly be ma|de front|
|000054d0| 6d 6f 73 74 20 69 66 20 | 69 74 27 73 20 6e 6f 74 |most if |it's not|
|000054e0| 20 61 6c 72 65 61 64 79 | 2e 20 63 68 61 72 4e 75 | already|. charNu|
|000054f0| 6d 50 2d 2d 20 69 6e 63 | 6c 75 64 65 73 20 74 68 |mP-- inc|ludes th|
|00005500| 65 20 41 53 43 49 49 20 | 63 6f 64 65 2c 20 30 2d |e ASCII |code, 0-|
|00005510| 32 35 35 2c 20 70 6c 75 | 73 20 74 68 65 20 71 75 |255, plu|s the qu|
|00005520| 61 6e 74 69 74 79 20 28 | 32 35 36 20 2a 20 74 68 |antity (|256 * th|
|00005530| 65 20 76 69 72 74 75 61 | 6c 20 6b 65 79 20 63 6f |e virtua|l key co|
|00005540| 64 65 55 2d 2d 20 76 61 | 6c 75 65 20 28 30 2d 31 |deU-- va|lue (0-1|
|00005550| 32 37 29 20 29 2e 20 63 | 6f 64 65 4e 75 6d 20 63 |27) ). c|odeNum c|
|00005560| 6f 72 72 65 73 70 6f 6e | 64 73 20 74 6f 20 74 68 |orrespon|ds to th|
|00005570| 65 20 6d 6f 64 69 66 69 | 65 72 20 6b 65 79 20 73 |e modifi|er key s|
|00005580| 74 61 74 65 73 3b 20 61 | 64 64 20 74 68 65 20 66 |tates; a|dd the f|
|00005590| 6f 6c 6c 6f 77 69 6e 67 | 4e 2d 2d 20 6e 75 6d 62 |ollowing|N-- numb|
|000055a0| 65 72 73 20 74 6f 67 65 | 74 68 65 72 20 66 6f 72 |ers toge|ther for|
|000055b0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 | the fol|lowing s|
|000055c0| 70 65 63 69 61 6c 20 6b | 65 79 73 3a 20 72 69 67 |pecial k|eys: rig|
|000055d0| 68 74 20 63 6f 6e 74 72 | 6f 6c 20 3d 20 31 32 38 |ht contr|ol = 128|
|000055e0| 3b 20 72 69 67 68 74 4f | 2d 2d 20 6f 70 74 69 6f |; rightO|-- optio|
|000055f0| 6e 20 3d 20 36 34 3b 20 | 72 69 67 68 74 20 73 68 |n = 64; |right sh|
|00005600| 69 66 74 20 3d 20 33 32 | 3b 20 6c 65 66 74 20 63 |ift = 32|; left c|
|00005610| 6f 6e 74 72 6f 6c 20 3d | 20 31 36 3b 20 6c 65 66 |ontrol =| 16; lef|
|00005620| 74 20 6f 70 74 69 6f 6e | 20 3d 20 38 3b 20 63 61 |t option| = 8; ca|
|00005630| 70 73 20 6c 6f 63 6b 50 | 2d 2d 20 3d 20 34 3b 20 |ps lockP|-- = 4; |
|00005640| 6c 65 66 74 20 73 68 69 | 66 74 20 3d 20 32 3b 20 |left shi|ft = 2; |
|00005650| 6c 65 66 74 20 63 6f 6d | 6d 61 6e 64 20 3d 20 31 |left com|mand = 1|
|00005660| 2e 20 59 6f 75 20 63 61 | 6e 20 72 65 73 65 61 72 |. You ca|n resear|
|00005670| 63 68 20 74 68 65 73 65 | 20 76 61 6c 75 65 73 20 |ch these| values |
|00005680| 62 79 20 75 73 69 6e 67 | 52 2d 2d 20 52 65 73 45 |by using|R-- ResE|
|00005690| 64 69 74 20 74 6f 20 65 | 78 61 6d 69 6e 65 20 74 |dit to e|xamine t|
|000056a0| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 4b |he appro|priate K|
|000056b0| 43 48 52 20 72 65 73 6f | 75 72 63 65 20 69 6e 20 |CHR reso|urce in |
|000056c0| 61 20 63 6f 70 79 20 6f | 66 20 79 6f 75 72 20 53 |a copy o|f your S|
|000056d0| 79 73 74 65 6d 20 66 69 | 6c 65 2e 4e 2d 2d 20 46 |ystem fi|le.N-- F|
|000056e0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or examp|le, the |
|000056f0| 55 53 20 6b 65 79 62 6f | 61 72 64 20 6c 61 79 6f |US keybo|ard layo|
|00005700| 75 74 20 75 73 65 73 20 | 74 68 65 73 65 20 6e 75 |ut uses |these nu|
|00005710| 6d 62 65 72 73 20 74 6f | 20 72 65 70 72 65 73 65 |mbers to| represe|
|00005720| 6e 74 20 61 20 50 61 73 | 74 65 4e 2d 2d 20 6d 65 |nt a Pas|teN-- me|
|00005730| 6e 75 20 69 74 65 6d 20 | 63 68 6f 69 63 65 20 28 |nu item |choice (|
|00005740| 63 6f 6d 6d 61 6e 64 2d | 76 29 3a 20 61 73 63 69 |command-|v): asci|
|00005750| 69 20 31 31 38 20 28 68 | 65 78 20 76 61 6c 75 65 |i 118 (h|ex value|
|00005760| 20 37 36 3b 20 28 37 20 | 2a 20 31 36 29 20 2b 20 | 76; (7 |* 16) + |
|00005770| 36 29 29 2c 20 70 6c 75 | 73 51 2d 2d 20 32 35 36 |6)), plu|sQ-- 256|
|00005780| 20 2a 20 39 20 28 68 65 | 78 20 76 61 6c 75 65 20 | * 9 (he|x value |
|00005790| 30 39 3b 20 30 20 2a 20 | 31 36 20 2b 20 39 29 2c |09; 0 * |16 + 9),|
|000057a0| 20 6f 72 20 32 33 30 34 | 2c 20 66 6f 72 20 74 68 | or 2304|, for th|
|000057b0| 65 20 76 69 72 74 75 61 | 6c 20 6b 65 79 20 63 6f |e virtua|l key co|
|000057c0| 64 65 20 70 6f 72 74 69 | 6f 6e 2e 4e 2d 2d 20 41 |de porti|on.N-- A|
|000057d0| 53 43 49 49 20 2b 20 76 | 69 72 74 75 61 6c 20 3d |SCII + v|irtual =|
|000057e0| 20 32 34 32 32 3b 20 74 | 68 69 73 20 69 73 20 73 | 2422; t|his is s|
|000057f0| 75 70 70 6c 69 65 64 20 | 61 73 20 63 68 61 72 4e |upplied |as charN|
|00005800| 75 6d 2e 20 46 6f 72 20 | 74 68 65 20 50 61 73 74 |um. For |the Past|
|00005810| 65 20 63 6f 64 65 4e 75 | 6d 2c 50 2d 2d 20 73 75 |e codeNu|m,P-- su|
|00005820| 70 70 6c 79 20 31 20 28 | 63 6f 6d 6d 61 6e 64 20 |pply 1 (|command |
|00005830| 6b 65 79 20 64 6f 77 6e | 29 2e 20 53 65 65 20 74 |key down|). See t|
|00005840| 68 65 20 4d 61 73 74 65 | 72 41 70 70 20 72 65 61 |he Maste|rApp rea|
|00005850| 64 6d 65 20 66 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |dme for |more inf|
|00005860| 6f 20 6f 6e 20 68 6f 77 | 20 74 6f 33 2d 2d 20 75 |o on how| to3-- u|
|00005870| 73 65 20 74 68 69 73 20 | 6d 65 74 68 6f 64 2c 20 |se this |method, |
|00005880| 61 6e 64 20 6d 6f 72 65 | 20 65 78 61 6d 70 6c 65 |and more| example|
|00005890| 20 76 61 6c 75 65 73 20 | 74 6f 20 75 73 65 2e 32 | values |to use.2|
|000058a0| 49 49 49 49 20 6d 46 61 | 6b 65 43 68 61 72 43 6f |IIII mFa|keCharCo|
|000058b0| 64 65 57 61 69 74 2c 20 | 77 69 6e 64 6f 77 49 44 |deWait, |windowID|
|000058c0| 2c 20 63 68 61 72 4e 75 | 6d 2c 20 63 6f 64 65 4e |, charNu|m, codeN|
|000058d0| 75 6d 47 2d 2d 20 4f 6e | 20 74 68 65 20 4d 61 63 |umG-- On| the Mac|
|000058e0| 2c 20 61 20 73 79 6e 6f | 6e 79 6d 20 66 6f 20 6d |, a syno|nym fo m|
|000058f0| 46 61 6b 65 43 68 61 72 | 43 6f 64 65 2e 20 54 68 |FakeChar|Code. Th|
|00005900| 65 20 64 69 66 66 65 72 | 65 6e 74 20 74 65 63 68 |e differ|ent tech|
|00005910| 69 71 75 65 73 20 74 68 | 61 74 47 2d 2d 20 75 6e |iques th|atG-- un|
|00005920| 64 65 72 6c 69 65 20 74 | 68 65 20 74 77 6f 20 73 |derlie t|he two s|
|00005930| 65 70 61 72 61 74 65 20 | 6d 65 74 68 6f 64 73 20 |eparate |methods |
|00005940| 6f 6e 20 57 69 6e 64 6f | 77 73 20 64 6f 6e 27 74 |on Windo|ws don't|
|00005950| 20 65 78 69 73 74 20 6f | 6e 20 74 68 65 20 4d 61 | exist o|n the Ma|
|00005960| 63 2e 1d 53 53 20 6d 4c | 6f 63 61 74 65 45 78 65 |c..SS mL|ocateExe|
|00005970| 63 75 74 61 62 6c 65 2c | 20 74 68 65 46 69 6c 65 |cutable,| theFile|
|00005980| 48 2d 2d 20 52 65 74 75 | 72 6e 73 20 74 68 65 20 |H-- Retu|rns the |
|00005990| 66 75 6c 6c 20 66 69 6c | 65 6e 61 6d 65 20 6f 66 |full fil|ename of|
|000059a0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000059b0| 20 72 65 67 69 73 74 65 | 72 65 64 20 74 6f 20 6c | registe|red to l|
|000059c0| 61 75 6e 63 68 20 74 68 | 65 46 2d 2d 20 70 72 6f |aunch th|eF-- pro|
|000059d0| 76 69 64 65 64 20 66 69 | 6c 65 20 28 75 73 65 20 |vided fi|le (use |
|000059e0| 61 20 66 75 6c 6c 20 70 | 61 74 68 20 74 6f 20 74 |a full p|ath to t|
|000059f0| 68 65 20 66 69 6c 65 6e | 61 6d 65 29 2e 20 41 6c |he filen|ame). Al|
|00005a00| 74 65 72 6e 61 74 69 76 | 65 20 75 73 61 67 65 3a |ternativ|e usage:|
|00005a10| 45 2d 2d 20 70 72 6f 76 | 69 64 65 20 61 6e 20 61 |E-- prov|ide an a|
|00005a20| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6e 61 6d 65 20 |pplicati|on name |
|00005a30| 77 69 74 68 6f 75 74 20 | 61 20 70 61 74 68 2c 20 |without |a path, |
|00005a40| 69 6e 73 74 65 61 64 20 | 6f 66 20 61 20 64 6f 63 |instead |of a doc|
|00005a50| 75 6d 65 6e 74 3b 43 2d | 2d 20 74 68 65 20 61 70 |ument;C-|- the ap|
|00005a60| 70 6c 69 63 61 74 69 6f | 6e 27 73 20 66 6f 6c 64 |plicatio|n's fold|
|00005a70| 65 72 20 77 69 6c 6c 20 | 62 65 20 72 65 74 75 72 |er will |be retur|
|00005a80| 6e 65 64 2e 20 52 65 74 | 75 72 6e 73 20 61 20 73 |ned. Ret|urns a s|
|00005a90| 74 72 69 6e 67 20 77 69 | 74 68 47 2d 2d 20 77 6f |tring wi|thG-- wo|
|00005aa0| 72 64 20 31 20 27 45 72 | 72 6f 72 3a 27 20 69 66 |rd 1 'Er|ror:' if|
|00005ab0| 20 6e 6f 74 68 69 6e 67 | 20 63 61 6e 20 62 65 20 | nothing| can be |
|00005ac0| 6c 6f 63 61 74 65 64 2e | 20 4e 6f 74 65 20 74 68 |located.| Note th|
|00005ad0| 61 74 20 74 68 65 20 61 | 6c 74 65 72 6e 61 74 69 |at the a|lternati|
|00005ae0| 76 65 4c 2d 2d 20 75 73 | 61 67 65 20 63 61 6e 20 |veL-- us|age can |
|00005af0| 74 61 6b 65 20 71 75 69 | 74 65 20 61 20 77 68 69 |take qui|te a whi|
|00005b00| 6c 65 2c 20 61 73 20 69 | 74 20 73 65 61 72 63 68 |le, as i|t search|
|00005b10| 65 73 20 61 6c 6c 20 6c | 6f 63 61 6c 20 61 6e 64 |es all l|ocal and|
|00005b20| 20 6e 65 74 77 6f 72 6b | 20 64 69 73 6b 73 2e 19 | network| disks..|
|00005b30| 49 53 20 6d 4f 70 65 6e | 44 6f 63 75 6d 65 6e 74 |IS mOpen|Document|
|00005b40| 2c 20 74 68 65 46 69 6c | 65 4a 2d 2d 20 4f 70 65 |, theFil|eJ-- Ope|
|00005b50| 6e 73 20 61 20 64 6f 63 | 75 6d 65 6e 74 20 77 69 |ns a doc|ument wi|
|00005b60| 74 68 20 69 74 73 20 72 | 65 67 69 73 74 65 72 65 |th its r|egistere|
|00005b70| 64 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 28 6c |d applic|ation (l|
|00005b80| 61 75 6e 63 68 69 6e 67 | 20 74 68 65 20 61 70 70 |aunching| the app|
|00005b90| 2c 20 69 66 47 2d 2d 20 | 6e 65 63 65 73 73 61 72 |, ifG-- |necessar|
|00005ba0| 79 29 2e 20 52 65 74 75 | 72 6e 73 20 61 6e 20 69 |y). Retu|rns an i|
|00005bb0| 6e 73 74 61 6e 63 65 49 | 44 20 6f 66 20 74 68 65 |nstanceI|D of the|
|00005bc0| 20 6c 61 75 6e 63 68 65 | 64 20 61 70 70 6c 69 63 | launche|d applic|
|00005bd0| 61 74 69 6f 6e 2c 20 6f | 72 20 2d 31 45 2d 2d 20 |ation, o|r -1E-- |
|00005be0| 69 66 20 74 68 65 20 66 | 69 6c 65 20 69 73 20 6d |if the f|ile is m|
|00005bf0| 69 73 73 69 6e 67 2c 20 | 6f 72 20 61 6e 6f 74 68 |issing, |or anoth|
|00005c00| 65 72 20 6e 65 67 61 74 | 69 76 65 20 6e 75 6d 62 |er negat|ive numb|
|00005c10| 65 72 20 69 66 20 74 68 | 65 72 65 27 73 20 73 6f |er if th|ere's so|
|00005c20| 6d 65 26 2d 2d 20 6f 74 | 68 65 72 20 70 72 6f 62 |me&-- ot|her prob|
|00005c30| 6c 65 6d 20 6f 70 65 6e | 69 6e 67 20 74 68 65 20 |lem open|ing the |
|00005c40| 64 6f 63 75 6d 65 6e 74 | 2e 1a 49 53 20 6d 50 72 |document|..IS mPr|
|00005c50| 69 6e 74 44 6f 63 75 6d | 65 6e 74 2c 20 74 68 65 |intDocum|ent, the|
|00005c60| 46 69 6c 65 4b 2d 2d 20 | 50 72 69 6e 74 73 20 61 |FileK-- |Prints a|
|00005c70| 20 64 6f 63 75 6d 65 6e | 74 20 77 69 74 68 20 69 | documen|t with i|
|00005c80| 74 73 20 72 65 67 69 73 | 74 65 72 65 64 20 61 70 |ts regis|tered ap|
|00005c90| 70 6c 69 63 61 74 69 6f | 6e 20 28 6c 61 75 6e 63 |plicatio|n (launc|
|00005ca0| 68 69 6e 67 20 74 68 65 | 20 61 70 70 2c 20 69 66 |hing the| app, if|
|00005cb0| 47 2d 2d 20 6e 65 63 65 | 73 73 61 72 79 29 2e 20 |G-- nece|ssary). |
|00005cc0| 52 65 74 75 72 6e 73 20 | 61 6e 20 69 6e 73 74 61 |Returns |an insta|
|00005cd0| 6e 63 65 49 44 20 6f 66 | 20 74 68 65 20 6c 61 75 |nceID of| the lau|
|00005ce0| 6e 63 68 65 64 20 61 70 | 70 6c 69 63 61 74 69 6f |nched ap|plicatio|
|00005cf0| 6e 2c 20 6f 72 20 2d 31 | 45 2d 2d 20 69 66 20 74 |n, or -1|E-- if t|
|00005d00| 68 65 20 66 69 6c 65 20 | 69 73 20 6d 69 73 73 69 |he file |is missi|
|00005d10| 6e 67 2c 20 6f 72 20 61 | 6e 6f 74 68 65 72 20 6e |ng, or a|nother n|
|00005d20| 65 67 61 74 69 76 65 20 | 6e 75 6d 62 65 72 20 69 |egative |number i|
|00005d30| 66 20 74 68 65 72 65 27 | 73 20 73 6f 6d 65 26 2d |f there'|s some&-|
|00005d40| 2d 20 6f 74 68 65 72 20 | 70 72 6f 62 6c 65 6d 20 |- other |problem |
|00005d50| 6f 70 65 6e 69 6e 67 20 | 74 68 65 20 64 6f 63 75 |opening |the docu|
|00005d60| 6d 65 6e 74 2e 13 49 20 | 6d 47 65 74 4d 65 6e 75 |ment..I |mGetMenu|
|00005d70| 42 61 72 48 65 69 67 68 | 74 1f 49 49 20 6d 53 65 |BarHeigh|t.II mSe|
|00005d80| 74 4d 65 6e 75 42 61 72 | 48 65 69 67 68 74 2c 20 |tMenuBar|Height, |
|00005d90| 6e 65 77 48 65 69 67 68 | 74 12 49 20 6d 47 65 74 |newHeigh|t.I mGet|
|00005da0| 53 79 73 74 65 6d 53 63 | 72 69 70 74 12 49 20 6d |SystemSc|ript.I m|
|00005db0| 47 65 74 53 79 73 74 65 | 6d 52 65 67 69 6f 6e 46 |GetSyste|mRegionF|
|00005dc0| 2d 2d 20 54 68 65 73 65 | 20 6d 65 74 68 6f 64 73 |-- These| methods|
|00005dd0| 20 61 72 65 20 75 73 65 | 66 75 6c 20 74 6f 20 61 | are use|ful to a|
|00005de0| 73 73 75 72 65 20 74 68 | 61 74 20 61 6e 79 20 61 |ssure th|at any a|
|00005df0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 79 6f 75 20 |pplicati|ons you |
|00005e00| 6c 61 75 6e 63 68 4a 2d | 2d 20 6f 72 20 73 77 69 |launchJ-|- or swi|
|00005e10| 74 63 68 20 74 6f 20 70 | 72 6f 70 65 72 6c 79 20 |tch to p|roperly |
|00005e20| 64 69 73 70 6c 61 79 20 | 74 68 65 69 72 20 6d 65 |display |their me|
|00005e30| 6e 75 73 2e 20 4d 61 63 | 20 70 72 6f 6a 65 63 74 |nus. Mac| project|
|00005e40| 6f 72 73 20 64 6f 6e 27 | 74 20 63 6f 6e 74 61 69 |ors don'|t contai|
|00005e50| 6e 51 2d 2d 20 6d 65 6e | 75 73 20 75 73 75 61 6c |nQ-- men|us usual|
|00005e60| 6c 79 3b 20 74 68 65 73 | 65 20 4d 61 63 2d 6f 6e |ly; thes|e Mac-on|
|00005e70| 6c 79 20 6d 65 74 68 6f | 64 73 20 6c 65 74 20 79 |ly metho|ds let y|
|00005e80| 6f 75 20 73 6f 6c 76 65 | 20 61 6e 79 20 6d 65 6e |ou solve| any men|
|00005e90| 75 20 64 69 73 70 6c 61 | 79 20 70 72 6f 62 6c 65 |u displa|y proble|
|00005ea0| 6d 73 2e 48 2d 2d 20 54 | 68 65 20 55 53 20 73 79 |ms.H-- T|he US sy|
|00005eb0| 73 74 65 6d 20 73 63 72 | 69 70 74 20 28 30 29 20 |stem scr|ipt (0) |
|00005ec0| 75 73 65 73 20 61 20 73 | 74 61 6e 64 61 72 64 20 |uses a s|tandard |
|00005ed0| 6d 65 6e 75 20 62 61 72 | 20 68 65 69 67 68 74 20 |menu bar| height |
|00005ee0| 6f 66 20 32 30 2e 20 4f | 74 68 65 72 49 2d 2d 20 |of 20. O|therI-- |
|00005ef0| 6c 6f 63 61 6c 69 7a 65 | 64 20 73 79 73 74 65 6d |localize|d system|
|00005f00| 20 76 65 72 73 69 6f 6e | 73 20 6d 61 79 20 75 73 | version|s may us|
|00005f10| 65 20 64 69 66 66 65 72 | 65 6e 74 20 68 65 69 67 |e differ|ent heig|
|00005f20| 68 74 73 2e 20 54 68 65 | 20 70 72 6f 70 65 72 20 |hts. The| proper |
|00005f30| 68 65 69 67 68 74 4c 2d | 2d 20 74 6f 20 75 73 65 |heightL-|- to use|
|00005f40| 20 63 61 6e 20 62 65 20 | 64 65 74 65 72 6d 69 6e | can be |determin|
|00005f50| 65 64 20 69 6e 20 74 68 | 65 20 61 75 74 68 6f 72 |ed in th|e author|
|00005f60| 69 6e 67 20 4d 65 73 73 | 61 67 65 20 77 69 6e 64 |ing Mess|age wind|
|00005f70| 6f 77 20 6f 6e 20 73 75 | 63 68 20 73 79 73 74 65 |ow on su|ch syste|
|00005f80| 6d 73 2e 4b 2d 2d 20 53 | 65 65 20 74 68 65 20 73 |ms.K-- S|ee the s|
|00005f90| 75 70 70 6c 69 65 64 20 | 52 65 61 64 20 4d 65 20 |upplied |Read Me |
|00005fa0| 69 6e 66 6f 20 66 6f 72 | 20 74 68 65 20 6d 65 61 |info for| the mea|
|00005fb0| 6e 69 6e 67 20 6f 66 20 | 73 63 72 69 70 74 20 26 |ning of |script &|
|00005fc0| 20 72 65 67 69 6f 6e 20 | 76 61 6c 75 65 73 2e 48 | region |values.H|
|00005fd0| 2d 2d 20 4f 72 2c 20 75 | 73 65 20 4c 69 6e 67 6f |-- Or, u|se Lingo|
|00005fe0| 27 73 20 27 69 6e 73 74 | 61 6c 6c 4d 65 6e 75 27 |'s 'inst|allMenu'|
|00005ff0| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 20 61 20 62 6c | to inst|all a bl|
|00006000| 61 6e 6b 20 6d 65 6e 75 | 20 69 6e 20 61 20 70 72 |ank menu| in a pr|
|00006010| 6f 6a 65 63 74 6f 72 2c | 4d 2d 2d 20 6f 6e 63 65 |ojector,|M-- once|
|00006020| 2c 20 74 65 6d 70 6f 72 | 61 72 69 6c 79 2c 20 74 |, tempor|arily, t|
|00006030| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 74 68 65 20 |o determ|ine the |
|00006040| 6d 65 6e 75 20 62 61 72 | 20 68 65 69 67 68 74 20 |menu bar| height |
|00006050| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |in the c|urrent s|
|00006060| 79 73 74 65 6d 2e 34 49 | 53 53 20 6d 4c 61 75 6e |ystem.4I|SS mLaun|
|00006070| 63 68 2c 20 74 68 65 50 | 72 6f 67 72 61 6d 46 69 |ch, theP|rogramFi|
|00006080| 6c 65 2c 20 74 68 65 43 | 6f 6d 6d 61 6e 64 4c 69 |le, theC|ommandLi|
|00006090| 6e 65 41 72 67 75 6d 65 | 6e 74 73 4d 2d 2d 20 4f |neArgume|ntsM-- O|
|000060a0| 70 65 6e 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |pens app|lication|
|000060b0| 20 69 6e 64 69 63 61 74 | 65 64 20 62 79 20 74 68 | indicat|ed by th|
|000060c0| 65 20 66 75 6c 6c 20 70 | 61 74 68 6e 61 6d 65 20 |e full p|athname |
|000060d0| 27 74 68 65 50 72 6f 67 | 72 61 6d 46 69 6c 65 27 |'theProg|ramFile'|
|000060e0| 2c 20 69 66 20 69 74 27 | 73 4b 2d 2d 20 6e 6f 74 |, if it'|sK-- not|
|000060f0| 20 61 6c 72 65 61 64 79 | 20 6f 70 65 6e 2c 20 6f | already| open, o|
|00006100| 72 20 73 77 69 74 63 68 | 65 73 20 74 68 61 74 20 |r switch|es that |
|00006110| 61 70 70 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |app to t|he front|
|00006120| 20 69 66 20 69 74 20 69 | 73 20 6f 70 65 6e 3b 20 | if it i|s open; |
|00006130| 61 6c 73 6f 2c 52 2d 2d | 20 69 66 20 61 6e 79 74 |also,R--| if anyt|
|00006140| 68 69 6e 67 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |hing oth|er than |
|00006150| 45 4d 50 54 59 20 69 73 | 20 70 72 6f 76 69 64 65 |EMPTY is| provide|
|00006160| 64 20 66 6f 72 20 27 74 | 68 65 43 6f 6d 6d 61 6e |d for 't|heComman|
|00006170| 64 4c 69 6e 65 41 72 67 | 75 6d 65 6e 74 73 27 2c |dLineArg|uments',|
|00006180| 20 61 73 73 75 6d 65 73 | 55 2d 2d 20 69 74 20 69 | assumes|U-- it i|
|00006190| 73 20 61 20 66 75 6c 6c | 20 70 61 74 68 6e 61 6d |s a full| pathnam|
|000061a0| 65 20 74 6f 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 |e to a d|ocument |
|000061b0| 79 6f 75 20 77 61 6e 74 | 20 6f 70 65 6e 65 64 20 |you want| opened |
|000061c0| 69 6e 20 74 68 65 20 61 | 70 70 2e 20 52 65 74 75 |in the a|pp. Retu|
|000061d0| 72 6e 73 20 61 20 6e 65 | 67 61 74 69 76 65 55 2d |rns a ne|gativeU-|
|000061e0| 2d 20 6e 75 6d 62 65 72 | 20 66 6f 72 20 65 72 72 |- number| for err|
|000061f0| 6f 72 73 20 28 2d 31 30 | 38 20 69 73 20 61 20 63 |ors (-10|8 is a c|
|00006200| 6f 6d 6d 6f 6e 20 6f 6e | 65 2c 20 66 6f 72 20 6e |ommon on|e, for n|
|00006210| 6f 74 20 65 6e 6f 75 67 | 68 20 6d 65 6d 6f 72 79 |ot enoug|h memory|
|00006220| 29 2c 20 6f 72 20 61 6e | 20 69 6e 73 74 61 6e 63 |), or an| instanc|
|00006230| 65 49 44 2e 3d 49 53 53 | 20 6d 4c 61 75 6e 63 68 |eID.=ISS| mLaunch|
|00006240| 4d 61 78 69 6d 69 7a 65 | 64 2c 20 74 68 65 50 72 |Maximize|d, thePr|
|00006250| 6f 67 72 61 6d 46 69 6c | 65 2c 20 74 68 65 43 6f |ogramFil|e, theCo|
|00006260| 6d 6d 61 6e 64 4c 69 6e | 65 41 72 67 75 6d 65 6e |mmandLin|eArgumen|
|00006270| 74 73 4f 2d 2d 20 54 68 | 65 72 65 27 73 20 6e 6f |tsO-- Th|ere's no|
|00006280| 20 4d 61 63 20 65 71 75 | 69 76 61 6c 65 6e 74 20 | Mac equ|ivalent |
|00006290| 66 6f 72 20 74 68 69 73 | 20 57 69 6e 64 6f 77 73 |for this| Windows|
|000062a0| 20 6d 65 74 68 6f 64 2c | 20 73 6f 20 74 68 69 73 | method,| so this|
|000062b0| 20 69 73 20 6a 75 73 74 | 20 61 20 73 79 6e 6f 6e | is just| a synon|
|000062c0| 79 6d 1a 2d 2d 20 66 6f | 72 20 6d 4c 61 75 6e 63 |ym.-- fo|r mLaunc|
|000062d0| 68 20 6f 6e 20 74 68 65 | 20 4d 61 63 2e 43 49 53 |h on the| Mac.CIS|
|000062e0| 53 20 6d 4c 61 75 6e 63 | 68 42 75 74 44 6f 6e 74 |S mLaunc|hButDont|
|000062f0| 41 63 74 69 76 61 74 65 | 2c 20 74 68 65 50 72 6f |Activate|, thePro|
|00006300| 67 72 61 6d 46 69 6c 65 | 2c 20 74 68 65 43 6f 6d |gramFile|, theCom|
|00006310| 6d 61 6e 64 4c 69 6e 65 | 41 72 67 75 6d 65 6e 74 |mandLine|Argument|
|00006320| 73 54 2d 2d 20 53 69 6d | 69 6c 61 72 20 74 6f 20 |sT-- Sim|ilar to |
|00006330| 6d 4c 61 75 6e 63 68 2c | 20 62 75 74 20 77 6f 6e |mLaunch,| but won|
|00006340| 27 74 20 73 77 69 74 63 | 68 20 61 6e 20 61 6c 72 |'t switc|h an alr|
|00006350| 65 61 64 79 20 72 75 6e | 6e 69 6e 67 20 61 70 70 |eady run|ning app|
|00006360| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |lication| to the |
|00006370| 66 72 6f 6e 74 2c 51 2d | 2d 20 61 6e 64 20 77 6f |front,Q-|- and wo|
|00006380| 6e 27 74 20 6c 61 75 6e | 63 68 20 6e 65 77 20 61 |n't laun|ch new a|
|00006390| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 69 6e 20 66 |pplicati|ons in f|
|000063a0| 72 6f 6e 74 2e 20 4e 6f | 74 65 20 74 68 61 74 20 |ront. No|te that |
|000063b0| 73 75 70 70 6c 79 69 6e | 67 20 61 20 64 6f 63 75 |supplyin|g a docu|
|000063c0| 6d 65 6e 74 20 6d 61 79 | 34 2d 2d 20 63 61 75 73 |ment may|4-- caus|
|000063d0| 65 20 74 68 65 20 61 70 | 70 20 74 6f 20 6d 6f 76 |e the ap|p to mov|
|000063e0| 65 20 69 74 73 65 6c 66 | 20 74 6f 20 74 68 65 20 |e itself| to the |
|000063f0| 66 72 6f 6e 74 20 61 6e | 79 77 61 79 2e 3d 49 53 |front an|yway.=IS|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.